:root {
    --bg: #08111a;
    --bg-elevated: #0d1825;
    --bg-soft: #132033;
    --panel: rgba(16, 28, 44, 0.92);
    --panel-strong: rgba(21, 36, 57, 0.98);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --text: #f7fbff;
    --text-soft: #d9e6f7;
    --muted: #9eb2cb;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --accent: #3169ef;
    --accent-strong: #4d86ff;
    --accent-soft: rgba(77, 134, 255, 0.18);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
    --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.18);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1200px, calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(77, 134, 255, 0.12), transparent 26%),
        radial-gradient(circle at top left, rgba(49, 105, 239, 0.08), transparent 28%),
        linear-gradient(180deg, #09111a 0%, #0b1521 36%, #08111a 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

textarea {
    resize: vertical;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 88%);
    opacity: 0.18;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(8, 17, 26, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-shell,
.nav-actions,
.site-nav,
.meta-row,
.hero-actions,
.footer-bottom,
.section-heading,
.filter-bar,
.form-row,
.table-actions,
.comment-head,
.checkbox-row,
.card-tags,
.widget-title {
    display: flex;
    align-items: center;
}

.nav-shell {
    min-height: 78px;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    font-family: "Space Grotesk", sans-serif;
}

.brand span:last-child {
    min-width: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.9rem;
}

.brand-mark {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(13, 24, 37, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -28%;
    background: radial-gradient(circle, rgba(77, 134, 255, 0.22), transparent 54%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(119, 164, 255, 0.18);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.brand:hover .brand-mark::before {
    opacity: 1;
}

.brand-mark img {
    position: relative;
    z-index: 1;
    width: 78%;
    height: 78%;
    display: block;
    object-fit: contain;
}

.site-nav {
    gap: 20px;
}

.site-nav a,
.nav-actions a,
.footer-grid a,
.admin-nav a,
.section-heading a {
    color: var(--muted);
    transition: color 0.22s ease, transform 0.22s ease;
}

.site-nav a:hover,
.nav-actions a:hover,
.footer-grid a:hover,
.admin-nav a:hover,
.section-heading a:hover {
    color: var(--text);
}

.site-nav a,
.section-heading a {
    position: relative;
    padding: 6px 0;
}

.site-nav a::after,
.section-heading a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(210, 229, 255, 0.84), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.section-heading a:hover::after {
    transform: scaleX(1);
}

.nav-actions {
    gap: 12px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.03);
}

.account-chip-editorial {
    color: #dce8fb;
    background: rgba(49, 105, 239, 0.12);
    border-color: rgba(87, 135, 245, 0.18);
}

.account-chip-reader {
    color: #d4e6ff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon-btn {
    gap: 8px;
    min-width: 0;
}

.nav-icon-mark {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.search-inline {
    position: relative;
    width: min(320px, 30vw);
}

.search-inline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 14px;
    height: 14px;
    border: 1.8px solid rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    transform: translateY(-56%);
}

.search-inline::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 54%;
    width: 7px;
    height: 1.8px;
    background: rgba(255, 255, 255, 0.52);
    transform: rotate(42deg);
    transform-origin: left center;
}

.search-inline input,
input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    color: var(--text);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25 7 9l3.75-3.75' fill='none' stroke='%23dce8fb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 14px center;
    background-size: auto, 14px 14px;
    cursor: pointer;
}

select:hover {
    border-color: rgba(123, 164, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.055);
}

select option,
select optgroup {
    color: #eef4ff;
    background: #122032;
}

select.is-customized {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.ui-select {
    position: relative;
    width: 100%;
}

.ui-select-trigger {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 14px;
    border: 1px solid rgba(101, 135, 204, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(17, 30, 46, 0.94);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ui-select-trigger::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.8px solid #dce8fb;
    border-bottom: 1.8px solid #dce8fb;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.ui-select:hover .ui-select-trigger,
.ui-select.is-open .ui-select-trigger {
    border-color: rgba(123, 164, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(18, 32, 50, 0.98);
}

.ui-select.is-open .ui-select-trigger {
    box-shadow: 0 0 0 3px rgba(53, 111, 239, 0.12);
}

.ui-select.is-open .ui-select-trigger::after {
    transform: translateY(-35%) rotate(225deg);
}

.ui-select-trigger:focus-visible {
    outline: 0;
    border-color: rgba(123, 164, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(53, 111, 239, 0.16);
}

.ui-select-trigger-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(105, 142, 214, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 32, 50, 0.99), rgba(13, 24, 39, 0.99));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.ui-select.is-open .ui-select-menu {
    display: grid;
    gap: 4px;
}

.ui-select-option {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-soft);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ui-select-option:hover {
    background: rgba(49, 105, 239, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.ui-select-option.is-selected {
    background: rgba(49, 105, 239, 0.16);
    color: #ffffff;
}

.search-inline input {
    padding-left: 42px;
}

input::placeholder,
textarea::placeholder {
    color: #8ca2bd;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(91, 141, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(53, 111, 239, 0.14);
}

.primary-btn,
.ghost-btn,
.pagination a,
.table-actions button,
.table-actions a,
.hero-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.ghost-btn,
.pagination a,
.table-actions button,
.table-actions a,
.site-nav a,
.section-heading a,
.hero-switch {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(180deg, #3a76fb 0%, #295fdf 100%);
    box-shadow: 0 14px 28px rgba(36, 86, 205, 0.22);
}

.ghost-btn,
.pagination a,
.table-actions button,
.table-actions a {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.pagination a:hover,
.table-actions button:hover,
.table-actions a:hover,
.hero-switch:hover {
    transform: translateY(-1px);
}

.ghost-btn:hover,
.pagination a:hover,
.table-actions button:hover,
.table-actions a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.pagination a:focus-visible,
.site-nav a:focus-visible,
.section-heading a:focus-visible,
.hero-switch:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.22);
}

.nav-toggle {
    display: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.site-main {
    padding: 30px 0 80px;
}

/* ── View Transitions API ── */
@keyframes vt-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

::view-transition-old(root) {
    animation: vt-fade-out 0.18s ease forwards;
}

::view-transition-new(root) {
    animation: vt-fade-in 0.28s ease forwards;
}

.home-shell,
.auth-shell,
.profile-shell,
.post-layout,
.footer-grid,
.stats-grid {
    display: grid;
    gap: 26px;
}

.home-shell {
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.82fr);
    align-items: start;
}

.home-main,
.home-sidebar {
    display: grid;
    gap: 24px;
}

.home-sidebar {
    position: sticky;
    top: 98px;
}

.home-intro {
    position: relative;
    max-width: 720px;
    display: grid;
    gap: 16px;
    padding: 18px 0 8px;
}

.home-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 92px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-strong), transparent);
}

.home-intro h1,
.listing-hero h1,
.not-found-shell h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.3rem, 4vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 11ch;
}

.home-intro h1 span {
    display: block;
    color: #cfe2ff;
}

.home-intro h1 .site-title-accent {
    display: inline-block;
    margin-right: 0.18em;
    color: #ffffff;
    text-shadow: 0 0 28px rgba(77, 134, 255, 0.16);
}

.home-intro p,
.listing-hero p,
.auth-highlight p,
.not-found-shell p,
.site-footer p,
.muted,
.post-card-body p,
.ranking-widget-head p,
.featured-content p,
.review-highlight-copy p,
.admin-helper p {
    color: var(--muted);
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #dce8fb;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    font-weight: 800;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.08;
}

.featured-card,
.post-card,
.content-panel,
.auth-card,
.profile-card,
.stat-card,
.table-shell,
.empty-state,
.ranking-widget,
.hero-switch,
.admin-helper {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.js-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms),
        transform 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.interactive-surface {
    position: relative;
}

.interactive-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(220, 235, 255, 0.1), transparent 32%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.interactive-surface:hover::before {
    opacity: 1;
}

.featured-card,
.post-card,
.ranking-widget,
.ranking-item,
.side-card,
.hero-switch {
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background 0.24s ease;
}

.featured-card:hover,
.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--category-color, rgba(84, 130, 238, 0.26));
    box-shadow:
        0 20px 38px rgba(0, 0, 0, 0.28),
        0 0 32px 4px var(--category-soft, rgba(77, 134, 255, 0.18));
}

.featured-card a,
.post-card a {
    display: block;
    height: 100%;
}

.hero-carousel {
    display: grid;
    gap: 14px;
}

.hero-carousel-stage {
    position: relative;
    min-height: 456px;
}

.hero-slide {
    display: none;
    overflow: hidden;
}

.hero-slide.is-active {
    display: block;
    animation: hero-fade-in 0.35s ease;
}

.home-featured,
.featured-card {
    position: relative;
    min-height: 456px;
    overflow: hidden;
}

.featured-media,
.post-card-media,
.post-hero-media {
    background-size: cover;
    background-position: center top;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-media {
    transform: scale(1.08);
}

.featured-card:hover .featured-media {
    transform: scale(1.05);
}

.featured-media {
    position: absolute;
    inset: 0;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 17, 26, 0.1), rgba(8, 17, 26, 0.88) 82%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.1), var(--category-soft, rgba(77, 134, 255, 0.12)));
}

.featured-content {
    position: relative;
    z-index: 1;
    min-height: 456px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 26px;
}

.featured-content h2 {
    max-width: 11ch;
    font-size: clamp(1.72rem, 2.6vw, 2.8rem);
    margin: 14px 0 10px;
    line-height: 0.98;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-switch {
    align-items: stretch;
    justify-content: flex-start;
    min-height: 88px;
    padding: 14px 16px;
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(11, 20, 32, 0.96);
    text-align: left;
    color: var(--text);
}

.hero-switch.is-active {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, var(--category-soft, var(--accent-soft)), rgba(255, 255, 255, 0.03)),
        rgba(12, 22, 36, 0.98);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.hero-switch-index {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--category-soft, rgba(255, 255, 255, 0.04));
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-switch-copy {
    display: grid;
    gap: 6px;
}

.hero-switch-copy strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.18;
}

.hero-switch-copy small {
    color: #d9e6f7;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--category-soft, rgba(36, 87, 214, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--category-color, #fff);
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

.tag-icon,
.mini-icon,
.widget-icon,
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag-icon svg,
.mini-icon svg,
.widget-icon svg,
.section-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-tags {
    gap: 8px;
    flex-wrap: wrap;
}

.meta-row {
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #d4e0ef;
    font-size: 0.86rem;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-block,
.admin-section {
    margin-top: 34px;
}

.section-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-block .section-heading {
    position: relative;
    padding-bottom: 16px;
}

.section-block .section-heading::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--category-color, var(--accent)), transparent 80%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
    border-radius: 2px;
}

.section-block .section-heading.is-bar-visible::before {
    transform: scaleX(1);
}

.section-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.section-link-cta:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(96, 146, 255, 0.22);
    background: rgba(49, 105, 239, 0.08);
}

.cta-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon,
.widget-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--category-color, var(--accent));
    background: var(--category-soft, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-icon-strong {
    width: 48px;
    height: 48px;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-widget {
    padding: 18px;
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(21, 36, 57, 0.98) 0%, rgba(14, 26, 42, 0.98) 100%);
}

.ranking-widget-strong {
    background:
        radial-gradient(circle at top right, rgba(77, 134, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(25, 43, 68, 0.98) 0%, rgba(14, 26, 42, 0.98) 100%);
}

.ranking-widget:hover {
    border-color: rgba(84, 130, 238, 0.2);
}

.ranking-widget-head {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.ranking-widget-head p {
    margin: 0;
}

.widget-title {
    gap: 12px;
}

.ranking-list {
    display: grid;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ranking-item:hover,
.side-card:hover {
    transform: translateX(4px);
    border-color: rgba(84, 130, 238, 0.18);
}

.ranking-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--category-soft, rgba(255, 255, 255, 0.03));
    color: var(--text);
    font-weight: 900;
    font-size: 0.94rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-copy {
    min-width: 0;
}

.ranking-copy small,
.ranking-copy span {
    display: block;
    color: var(--muted);
}

.ranking-copy small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mini-icon {
    color: var(--category-color, var(--accent));
}

.ranking-copy strong {
    display: block;
    margin: 5px 0 7px;
    line-height: 1.34;
}

.post-card {
    overflow: hidden;
    position: relative;
}

.post-card-media {
    height: 208px;
    filter: saturate(1.05) brightness(1.04);
}

.post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 208px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 17, 26, 0.44);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.post-card-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--category-color, var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    transform: translateY(10px);
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-card:hover .post-card-overlay-cta {
    transform: translateY(0);
}

.post-card-overlay-cta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.post-card-body {
    padding: 18px;
}

.post-card-body h3 {
    font-size: 1.2rem;
    margin: 14px 0 9px;
    line-height: 1.12;
}

.listing-hero,
.not-found-shell {
    padding: 48px 0 18px;
    text-align: center;
}

.filter-bar,
.form-row {
    gap: 16px;
    flex-wrap: wrap;
}

.filter-bar {
    padding: 20px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.filter-bar select,
.form-stack select,
.review-queue-form select {
    min-height: 48px;
    border-color: rgba(101, 135, 204, 0.22);
    background-color: rgba(17, 30, 46, 0.94);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.results-bar strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    margin-right: 8px;
}

.results-bar span {
    color: var(--muted);
}

.filter-bar label,
.form-stack label {
    display: block;
    flex: 1;
}

.filter-bar span,
.form-stack span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.pagination .is-active {
    background: var(--accent);
}

.post-hero {
    position: relative;
    min-height: 520px;
    margin-bottom: 24px;
    overflow: hidden;
}

.post-hero-media {
    position: absolute;
    inset: 0;
}

.post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 9, 14, 0.18), rgba(4, 9, 14, 0.92) 74%),
        linear-gradient(135deg, transparent, var(--category-soft, rgba(77, 134, 255, 0.16)));
}

.post-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 230px;
    padding-bottom: 52px;
}

.post-hero-inner h1 {
    max-width: 12ch;
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    letter-spacing: -0.05em;
}

.post-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 0.9fr);
    align-items: start;
}

.post-content,
.comment-form,
.form-stack,
.side-list,
.facts-list {
    display: grid;
    gap: 18px;
}

.content-panel {
    padding: 24px;
}

.review-highlight {
    display: grid;
    grid-template-columns: 128px 1fr;
    align-items: center;
    gap: 22px;
    background:
        linear-gradient(135deg, var(--category-soft, var(--accent-soft)), rgba(255, 255, 255, 0.02)),
        rgba(15, 27, 43, 0.98);
}

@keyframes scoreOrbPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.05),
            0 0 0 0 var(--category-soft, rgba(77, 134, 255, 0.18));
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.18),
            0 0 28px 6px var(--category-soft, rgba(77, 134, 255, 0.22));
    }
}

.score-orb {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 62%),
        var(--category-soft, rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: scoreOrbPulse 3.2s ease-in-out infinite;
}

.score-orb strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.score-orb span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.review-highlight-copy h2 {
    margin-bottom: 10px;
}

.prose {
    color: #e8eff9;
    font-size: 1.04rem;
    line-height: 1.9;
}

.comment-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.comment-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-role-reader {
    background: rgba(255, 255, 255, 0.05);
    color: #d3e2f6;
}

.comment-role-editorial {
    background: rgba(49, 105, 239, 0.14);
    color: #ffffff;
    border-color: rgba(87, 135, 245, 0.18);
}

.comment-identity,
.comment-auth-copy {
    display: grid;
    gap: 8px;
}

.comment-identity strong,
.comment-auth-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.comment-auth-copy p {
    margin: 0;
    color: var(--muted);
}

.comment-reader-form {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.comment-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.comment-avatar,
.profile-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #122235;
    border: 1px solid rgba(62, 121, 255, 0.14);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.post-facts h3,
.post-hints h3 {
    margin-bottom: 14px;
}

.fact-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fact-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fact-item span {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fact-item strong {
    font-size: 0.98rem;
}

.fact-item-tags {
    gap: 8px;
}

.post-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.post-tag:hover {
    background: rgba(49, 105, 239, 0.18);
    color: var(--accent);
    border-color: rgba(49, 105, 239, 0.35);
}

.post-hints ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.side-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.side-card small {
    color: var(--muted);
}

.auth-shell {
    grid-template-columns: 1fr 420px;
    min-height: calc(100vh - 220px);
    align-items: center;
}

.auth-card {
    padding: 28px;
}

.profile-shell {
    grid-template-columns: 340px 1fr;
    align-items: start;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    border-radius: 24px;
    font-size: 2rem;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    animation: flashSlideIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}

.flash.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.flash-success {
    background: rgba(36, 87, 214, 0.12);
}

.flash-error {
    background: rgba(255, 255, 255, 0.04);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-workflow-waited {
    background: rgba(141, 165, 196, 0.1);
    color: #d6e2f3;
}

.badge-workflow-on_going {
    background: rgba(49, 105, 239, 0.16);
    color: #9ec2ff;
}

.badge-workflow-approved {
    background: rgba(71, 122, 255, 0.2);
    color: #ffffff;
}

.badge-workflow-reproved {
    background: rgba(255, 255, 255, 0.06);
    color: #b9c7d8;
}

.badge-publication-draft {
    background: rgba(255, 255, 255, 0.05);
    color: #cdd8e7;
}

.badge-publication-scheduled {
    background: rgba(91, 141, 255, 0.14);
    color: #b8d0ff;
}

.badge-publication-published {
    background: rgba(49, 105, 239, 0.22);
    color: #ffffff;
}

.admin-helper {
    padding: 16px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.input-counter,
.input-hint {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.cover-preview-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.cover-preview-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.cover-preview-head span {
    color: var(--muted);
    font-size: 0.86rem;
}

.cover-preview-frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 16 / 9;
}

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

.schedule-summary-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.schedule-summary-card small {
    color: var(--muted);
    line-height: 1.5;
}

[data-scheduled-field].is-disabled {
    opacity: 0.55;
}

[data-scheduled-field].is-disabled input {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
}

.review-score-field.is-hidden {
    opacity: 0.55;
}

.review-score-field.is-hidden input {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.02);
}

.has-ripple .ripple-dot {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.24);
    transform: scale(0);
    animation: ripple-bloom 0.52s ease-out forwards;
    z-index: -1;
}

.has-ripple.is-pressed {
    transform: translateY(0) scale(0.985);
}

@keyframes ripple-bloom {
    to {
        opacity: 0;
        transform: scale(1);
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 15% 0%, rgba(77, 134, 255, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(10, 21, 34, 0.98) 0%, rgba(8, 17, 26, 0.98) 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transform: translateX(-100%);
    animation: footer-sheen 9s linear infinite;
}

@keyframes footer-sheen {
    to {
        transform: translateX(100%);
    }
}

.footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    padding: 40px 0 26px;
}

.footer-grid div {
    position: relative;
    display: grid;
    gap: 10px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 2px;
}

.footer-grid a {
    width: fit-content;
}

.footer-bottom {
    justify-content: space-between;
    min-height: 74px;
    padding: 0 0 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.admin-body {
    background: linear-gradient(180deg, #09111a 0%, #0c1826 100%);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    background: rgba(10, 21, 34, 0.96);
}

.admin-brand {
    margin-bottom: 28px;
}

.admin-nav,
.admin-user-card {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    margin-top: 28px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-mobile-bar {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(8, 17, 26, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(12px);
}

.admin-mobile-bar .admin-brand-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    flex: 1;
}

.admin-site-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--muted);
    transition: color 0.2s;
}

.admin-site-link:hover {
    color: var(--text);
}

.admin-sidebar-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.admin-layout.sidebar-open .admin-sidebar-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.admin-layout.sidebar-open .admin-sidebar-btn span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.admin-layout.sidebar-open .admin-sidebar-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 59;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-main {
    padding: 28px;
    min-width: 0;
}

.admin-section-first {
    margin-top: 0;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.stat-card-icon {
    display: flex;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-card strong {
    font-size: 2.2rem;
    line-height: 1;
    font-family: "Space Grotesk", sans-serif;
}

.stat-card span {
    font-size: 0.84rem;
    color: var(--muted);
}

.stat-card-accent {
    border-color: rgba(77, 134, 255, 0.22);
    background: rgba(49, 105, 239, 0.06);
}

.stat-card-accent .stat-card-icon {
    color: var(--accent-strong);
}

.stat-card-warn {
    border-color: rgba(255, 186, 0, 0.28);
    background: rgba(255, 186, 0, 0.06);
}

.stat-card-warn .stat-card-icon {
    color: #f5c842;
}

.stat-card-warn strong {
    color: #f5c842;
}

.stat-card-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f5c842;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.stat-card-cta:hover {
    opacity: 0.75;
}

/* ── Admin nav active + badges ── */

.admin-nav a.is-active {
    color: var(--text);
    background: rgba(49, 105, 239, 0.10);
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 -12px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(245, 200, 66, 0.18);
    color: #f5c842;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-left: auto;
}

.admin-nav-external {
    margin-top: 4px;
    font-size: 0.84rem;
    opacity: 0.6;
}

.admin-nav-external:hover {
    opacity: 1;
}

/* ── Quick actions ── */

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-quick-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.admin-quick-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 134, 255, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.admin-quick-btn-warn {
    border-color: rgba(255, 186, 0, 0.24);
    background: rgba(255, 186, 0, 0.04);
}

.admin-quick-btn-warn:hover {
    border-color: rgba(255, 186, 0, 0.44);
}

.admin-quick-icon {
    display: flex;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.admin-quick-btn-warn .admin-quick-icon {
    color: #f5c842;
}

.admin-quick-btn strong {
    font-size: 0.96rem;
    font-family: "Space Grotesk", sans-serif;
}

.admin-quick-btn small {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.admin-quick-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 200, 66, 0.2);
    color: #f5c842;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ── Dashboard lower (two columns) ── */

.admin-dashboard-lower {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0 28px;
}

/* ── Upcoming scheduled widget ── */

.upcoming-list {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.18s ease;
}

.upcoming-item:last-child {
    border-bottom: 0;
}

.upcoming-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    text-align: center;
    line-height: 1.1;
}

.upcoming-date strong {
    font-size: 1.4rem;
    font-family: "Space Grotesk", sans-serif;
}

.upcoming-date span {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.upcoming-copy {
    flex: 1;
    min-width: 0;
}

.upcoming-copy strong {
    display: block;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-copy span {
    font-size: 0.76rem;
    color: var(--muted);
}

.admin-empty-widget {
    padding: 20px 18px;
}

/* ── Posts table responsive ── */

.posts-table .row-needs-attention td:first-child {
    border-left: 3px solid #f5c842;
    padding-left: 13px;
}

/* ── Content reading time hint ── */

.content-reading-hint {
    font-size: 0.78rem;
    color: var(--accent-strong);
    margin-top: 4px;
    display: block;
    min-height: 1.2em;
}

.admin-chart-shell {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(77, 134, 255, 0.12), transparent 34%),
        rgba(16, 28, 44, 0.92);
}

.admin-chart-head {
    margin-bottom: 16px;
    display: grid;
    gap: 10px;
}

.admin-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-chart-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.admin-chart-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-chart-tab {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-chart-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
}

.admin-chart-tab.is-active {
    background: rgba(49, 105, 239, 0.12);
    color: #fff;
    border-color: rgba(87, 135, 245, 0.26);
    box-shadow: inset 0 0 0 1px rgba(117, 159, 255, 0.08);
}

.admin-chart-tab:focus-visible {
    outline: 0;
    border-color: rgba(124, 166, 255, 0.34);
    box-shadow: 0 0 0 3px rgba(49, 105, 239, 0.12);
}

.admin-chart-tab-index {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-chart-tab.is-active .admin-chart-tab-index {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-chart-tab-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-chart-slide {
    display: none;
}

.admin-chart-slide.is-active {
    display: grid;
    gap: 14px;
}

.admin-chart-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.admin-chart-summary h3 {
    font-size: 1.3rem;
}

.admin-chart-total {
    text-align: right;
}

.admin-chart-total strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
}

.admin-chart-total span {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-line-chart {
    display: grid;
    gap: 12px;
}

.admin-line-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.admin-line-stage {
    display: grid;
    align-items: start;
}

.admin-line-visual {
    display: grid;
    gap: 6px;
    align-content: start;
}

.admin-line-canvas {
    width: 100%;
    height: 190px;
    display: block;
}

.admin-line-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1;
}

.admin-line-caption strong {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-line-baseline {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 0.5;
    vector-effect: non-scaling-stroke;
}

.admin-line-guide {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 0.4;
    stroke-dasharray: 2 3;
    vector-effect: non-scaling-stroke;
}

.admin-line-path {
    fill: none;
    stroke: #6aa3ff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.admin-line-dot {
    fill: #0e1e33;
    stroke: #6aa3ff;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.admin-line-scale {
    display: grid;
    align-items: center;
    color: var(--muted);
    font-size: 0.6rem;
    gap: 6px;
    padding-top: 2px;
}

.admin-line-scale span {
    text-align: center;
}

.admin-line-legend {
    display: grid;
    gap: 6px;
}

.admin-line-legend-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-line-legend-item:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 144, 248, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.admin-line-legend-index {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-line-legend-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-line-legend-copy span {
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.24;
}

.admin-line-legend-copy strong {
    color: #d7e4f7;
    font-size: 0.74rem;
    font-weight: 700;
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.table-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.table-actions button {
    min-height: 38px;
}

.review-queue-grid {
    display: grid;
    gap: 18px;
}

.review-queue-card {
    display: grid;
    gap: 16px;
}

.review-queue-head,
.review-queue-meta,
.review-queue-actions,
.review-queue-badges,
.review-queue-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-queue-head {
    justify-content: space-between;
    align-items: start;
}

.review-queue-head h3 {
    margin-top: 12px;
}

.review-queue-meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.review-queue-actions {
    justify-content: space-between;
}

.review-queue-form {
    flex: 1;
}

.review-queue-form select {
    max-width: 220px;
}

.admin-form {
    max-width: 980px;
}

.empty-state {
    padding: 32px;
    text-align: center;
}

.empty-state.compact {
    display: grid;
    gap: 14px;
    justify-items: center;
}

@media (max-width: 1180px) {
    .home-shell,
    .auth-shell,
    .profile-shell,
    .post-layout,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-mobile-bar {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 61;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .admin-layout.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .admin-layout.sidebar-open .admin-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-lower {
        grid-template-columns: 1fr;
    }

    .admin-line-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .hero-carousel-controls {
        grid-template-columns: 1fr;
    }

    .review-highlight {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav,
    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    }

    .nav-shell.is-open .site-nav,
    .nav-shell.is-open .nav-actions {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-shell {
        flex-wrap: wrap;
        padding: 14px 0 16px;
    }

    .search-inline {
        width: 100%;
    }

    .card-grid-3,
    .home-sidebar {
        grid-template-columns: 1fr;
    }

    .results-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-hero-inner {
        padding-top: 190px;
    }

    .js-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 560px) {
    .site-main {
        padding-top: 18px;
    }

    .container {
        width: min(100% - 22px, 1200px);
    }

    .content-panel,
    .auth-card,
    .stat-card,
    .table-shell,
    .post-card-body,
    .ranking-widget,
    .hero-switch,
    .admin-chart-shell {
        padding: 16px;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .brand {
        gap: 10px;
    }

    .brand strong {
        font-size: 1.12rem;
    }

    .brand small {
        font-size: 0.8rem;
    }

    .nav-icon-btn {
        justify-content: center;
    }

    .account-chip {
        justify-content: center;
    }

    .home-intro h1,
    .listing-hero h1,
    .not-found-shell h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .featured-content,
    .featured-card,
    .home-featured {
        min-height: 380px;
    }

    .hero-carousel-stage {
        min-height: 380px;
    }

    .ranking-item {
        grid-template-columns: 36px 1fr;
    }

    .ranking-index {
        width: 36px;
        height: 36px;
    }

    th,
    td {
        padding: 12px;
    }

    .admin-chart-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-chart-total {
        text-align: left;
    }

    .admin-line-stage {
        grid-template-columns: 1fr;
    }

    .review-queue-actions,
    .review-queue-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Scroll to top ── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 48;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent-soft);
    border-color: var(--accent-strong);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

/* ── Tag shimmer ao hover ── */
.tag {
    position: relative;
    overflow: hidden;
}

.tag::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    transform: translateX(-100%);
    transition: none;
}

.tag:hover::after {
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

/* ── Post hero meta ── */
.post-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.post-hero-author {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}

.post-hero-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.post-hero-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: rgba(214, 228, 245, 0.62);
    padding-right: 14px;
}

.post-hero-details span svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.7;
}

.post-hero-details span + span {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.post-hero-reading {
    color: rgba(180, 210, 255, 0.75) !important;
}

.post-hero-reading svg {
    opacity: 1 !important;
}

/* ── Reading progress bar ── */
#read-progress {
    position: fixed;
    top: 78px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    z-index: 49;
    transition: width 0.12s linear;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* ── Share panel ── */
.share-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    color: var(--text-soft);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent-strong);
    color: var(--text);
}

.share-whatsapp:hover {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.5);
    color: #25d366;
}

.share-copy.is-copied {
    background: rgba(77, 134, 255, 0.18);
    border-color: var(--accent-strong);
    color: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .js-reveal {
        opacity: 1;
        transform: none;
    }
}
