:root {
    --bg: #eef1f5;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #162033;
    --muted: #667085;
    --line: #cfd6e2;
    --line-soft: #e3e8ef;
    --blue: #255bd8;
    --teal: #0f8f83;
    --red: #b42318;
    --shadow: 0 14px 38px rgba(22, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

img {
    display: block;
    width: 100%;
}

.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;
}

.layout {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(22, 32, 51, 0.06);
}

.topbar-inner {
    width: min(1360px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-radius: 16px;
    font-weight: 800;
}

.brand strong {
    display: block;
}

.brand strong {
    font-size: 18px;
}

.main-menu {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    overflow-x: auto;
}

.main-menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #2d3748;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.main-menu a:hover {
    background: var(--surface-soft);
    border-color: var(--line-soft);
}

.top-banner-slider {
    padding: 14px 0 0;
    background: var(--bg);
}

.top-banner-frame {
    position: relative;
    height: 125px;
    overflow: hidden;
    background: #111827;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.top-banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms ease;
}

.top-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.top-banner-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-banner-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.72));
}

.top-banner-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    max-width: 620px;
}

.top-banner-copy strong {
    font-size: 24px;
    line-height: 1.1;
}

.top-banner-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.top-banner-button {
    position: relative;
    z-index: 1;
    margin-left: auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #fff;
    background: var(--blue);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}

.headline-strip {
    border-bottom: 1px solid var(--line);
    background: #172033;
    color: #fff;
}

.headline-strip .layout {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.headline-strip span {
    padding: 4px 9px;
    background: var(--red);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.headline-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.page-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 22px 0 44px;
}

.sidebar,
.content-area {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.sidebar {
    align-self: start;
    overflow: hidden;
}

.side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.side-title svg,
.side-box svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
}

.side-title h2 {
    margin: 0;
    font-size: 17px;
}

.category-list {
    display: grid;
}

.category-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 700;
    font-size: 14px;
}

.category-list a:last-child {
    border-bottom: 0;
}

.category-list a:hover,
.mini-post:hover {
    background: #f3f7ff;
}

.category-list small {
    min-width: 28px;
    padding: 2px 7px;
    color: var(--blue);
    background: #eaf0ff;
    border: 1px solid #cfdbff;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.content-area {
    padding: 18px;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    padding: 2px 2px 18px;
    border-bottom: 1px solid var(--line);
}

.section-head p {
    margin: 0 0 7px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-head h1 {
    max-width: 720px;
    margin: 0;
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: 0;
}

.small-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: var(--blue);
    background: #f3f7ff;
    border: 1px solid #cfdbff;
    border-radius: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    display: block;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.card-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    padding: 14px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.meta-line span {
    color: var(--teal);
    font-weight: 800;
}

.content-card h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.25;
    min-height: 45px;
}

.content-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ad-card {
    grid-column: 1 / -1;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface);
    border: 1px dashed #9eb3d6;
    border-radius: 16px;
}

.ad-card a,
.ad-card ins {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-card img {
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: contain;
    background: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.pagination a,
.pagination span {
    min-width: 24px;
    height: 26px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.pagination a.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.pagination svg {
    width: 13px;
    height: 13px;
}

.pagination .dots {
    min-width: 18px;
    padding: 0 2px;
    color: var(--muted);
    background: transparent;
    border-color: transparent;
}

.mini-posts {
    display: grid;
}

.compact-mini-posts {
    margin: 0 16px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.mini-post {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.mini-post span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: #eaf0ff;
    border: 1px solid #cfdbff;
    border-radius: 12px;
    font-weight: 800;
}

.mini-post strong {
    font-size: 14px;
    line-height: 1.32;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 16px 20px;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: var(--blue);
    background: #eef4ff;
    border: 1px solid #c7d7ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.latest-visual-list {
    display: grid;
    gap: 12px;
    margin: 16px;
}

.latest-visual {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.latest-visual img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.latest-visual strong {
    font-size: 14px;
    line-height: 1.3;
}

.latest-visual small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.vertical-ad {
    width: min(250px, calc(100% - 32px));
    min-height: 350px;
    display: grid;
    place-items: center;
    margin: 16px auto;
    overflow: hidden;
    background: var(--surface);
    border: 1px dashed #9eb3d6;
    border-radius: 16px;
}

.vertical-ad a,
.vertical-ad ins {
    display: block;
    width: 100%;
    height: 100%;
}

.vertical-ad img {
    width: 100%;
    min-height: 350px;
    object-fit: cover;
    background: #fff;
}

.side-box {
    margin: 16px;
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.side-box h3 {
    margin: 10px 0 8px;
    font-size: 17px;
}

.side-box p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.compact-note {
    padding: 12px 14px;
}

.profile-card {
    margin: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.right-sidebar > .profile-card:first-child {
    margin-top: 16px;
}

.profile-cover {
    height: 76px;
    background:
        linear-gradient(135deg, rgba(37, 91, 216, 0.86), rgba(15, 143, 131, 0.82)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=800&q=80") center / cover;
}

.profile-body {
    position: relative;
    padding: 0 16px 16px;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-top: -29px;
    color: #fff;
    background: #172033;
    border: 4px solid var(--surface);
    border-radius: 18px;
    font-size: 22px;
    font-weight: 800;
}

.profile-body h2 {
    margin: 12px 0 4px;
    font-size: 18px;
    line-height: 1.2;
}

.profile-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-word;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.profile-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: #f3f7ff;
    border: 1px solid #cfdbff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

.site-footer {
    background: #111827;
    color: #fff;
    border-top: 1px solid #263244;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, 1fr);
    gap: 28px;
    padding: 44px 0 32px;
}

.footer-brand .brand-logo {
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.footer-links a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.social-links span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-links h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.footer-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    color: rgba(255, 255, 255, 0.78);
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    font-size: 11px;
    line-height: 1;
}

.footer-counter strong {
    color: #fff;
    font-size: 10px;
    letter-spacing: 0;
}

.footer-counter b {
    min-width: 28px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue);
    border-radius: 5px;
    font-size: 10px;
}

@media (max-width: 1180px) {
    .page-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .right-sidebar {
        grid-column: 1 / -1;
    }

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

@media (max-width: 860px) {
    .topbar-inner,
    .page-grid,
    .footer-grid,
    .section-head {
        grid-template-columns: 1fr;
    }

    .main-menu {
        justify-content: flex-start;
        padding-bottom: 12px;
    }

    .top-banner-slide {
        padding: 16px;
    }

    .top-banner-copy strong {
        font-size: 20px;
    }

    .top-banner-button {
        display: none;
    }

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

    .mini-posts {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .layout,
    .topbar-inner {
        width: min(100% - 20px, 1360px);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-head h1 {
        font-size: 24px;
    }

    .headline-strip .layout {
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 0;
    }

    .top-banner-frame {
        height: 110px;
        border-radius: 14px;
    }

    .top-banner-copy small {
        display: none;
    }
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.88), rgba(37, 91, 216, 0.72)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.auth-card {
    width: min(100%, 460px);
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(17, 24, 39, 0.24);
}

.auth-brand {
    margin-bottom: 24px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.12;
}

.auth-lead,
.auth-switch {
    color: var(--muted);
}

.auth-lead {
    margin: 0 0 18px;
}

.auth-form {
    display: grid;
    gap: 13px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    font: inherit;
}

.auth-form textarea {
    min-height: 112px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.auth-form select {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.auth-form input[type="file"] {
    min-height: 48px;
    padding: 9px 12px;
    background: #f8fbff;
    border-style: dashed;
}

.auth-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    accent-color: var(--blue);
}

.auth-form small {
    display: block;
    margin-top: -5px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: 3px solid rgba(37, 91, 216, 0.14);
    border-color: var(--blue);
    background: #fff;
}

.auth-form button {
    min-height: 48px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-form button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.notice {
    margin: 0 0 12px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
}

.notice.error {
    color: #7a271a;
    background: #fff3f0;
    border-color: #fecdca;
}

.notice.success {
    color: #05603a;
    background: #ecfdf3;
    border-color: #abefc6;
}

.auth-switch {
    margin: 16px 0 0;
    text-align: center;
}

.auth-switch a {
    color: var(--blue);
    font-weight: 800;
}

.member-panel {
    padding: 28px 0 60px;
}

.panel-table {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.panel-table div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-table div:last-child {
    border-bottom: 0;
}

.panel-table span {
    color: var(--muted);
    font-weight: 700;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.admin-stat-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.admin-stat-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-stat-grid strong {
    color: var(--blue);
    font-size: 28px;
    line-height: 1;
}

.visits-admin {
    max-width: 1360px;
}

.visits-content {
    padding: 18px;
}

.visits-head {
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.visits-head p {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.1;
}

.visits-head h1 {
    max-width: none;
    font-size: 26px;
    line-height: 1.05;
}

.visit-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.visit-stat {
    display: grid;
    gap: 3px;
    min-height: 56px;
    padding: 9px 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.visit-stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.visit-stat strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.1;
}

.visit-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
    align-items: start;
    margin-top: 16px;
}

.visit-panel {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.visit-panel-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 12px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.visit-panel-head h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.15;
}

.visit-panel-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.visit-subhead {
    border-top: 1px solid var(--line);
}

.visit-table {
    display: grid;
}

.visit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 10px;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line-soft);
}

.visit-row:last-child {
    border-bottom: 0;
}

.visit-row-head {
    min-height: 30px;
    background: #fbfdff;
}

.visit-row a,
.visit-row span {
    min-width: 0;
    color: #485a78;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.visit-row a {
    text-decoration: none;
}

.visit-row a:hover {
    color: var(--blue);
}

.visit-row strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.visit-online-row {
    grid-template-columns: minmax(0, 1fr) 82px;
}

.visit-online-row span strong {
    display: inline-block;
    text-align: left;
}

.visit-online-row small {
    display: inline-block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.visit-month-row {
    grid-template-columns: minmax(76px, 1fr) 82px 62px 62px;
}

.visit-month-row strong {
    font-size: 12px;
}

@media (max-width: 560px) {
    .auth-card {
        padding: 18px;
    }

    .panel-table div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .visits-content {
        padding: 14px;
    }

    .visit-stat-grid,
    .visit-panels {
        grid-template-columns: 1fr;
    }

    .visit-row {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .visit-month-row {
        grid-template-columns: minmax(68px, 1fr) 68px 52px 52px;
    }
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
}

.primary-btn {
    color: #fff;
    background: var(--blue);
}

.secondary-btn {
    color: var(--blue);
    background: #f3f7ff;
    border: 1px solid #cfdbff;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.modal-head p {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.modal-head h2 {
    margin: 0;
    font-size: 22px;
}

.modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 18px;
    color: #344054;
    line-height: 1.65;
}

.modal-body p {
    margin: 0;
}

.demo-shell {
    height: 100vh;
    overflow: hidden;
    background: #0f172a;
}

.demo-topbar {
    height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.demo-title {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--blue);
    background: #f3f7ff;
    border: 1px solid #cfdbff;
    border-radius: 10px;
    font-weight: 800;
}

.demo-frame {
    width: 100%;
    height: calc(100vh - 72px);
    display: block;
    background: #fff;
    border: 0;
}

.demo-empty {
    width: min(640px, calc(100% - 32px));
    margin: 64px auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.not-found-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 24px 0 44px;
}

.not-found-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.not-found-card .error-code {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 72px;
    line-height: 0.9;
    font-weight: 900;
}

.not-found-card h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.not-found-card p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 920px) {
    .not-found-layout {
        grid-template-columns: 1fr;
    }
}

.download-code-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.resend-code-form {
    margin-top: 10px;
}

.auth-form .light-submit {
    color: var(--blue);
    background: #f3f7ff;
    border: 1px solid #cfdbff;
}

.license-check {
    display: flex;
    align-items: start;
    gap: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.license-check input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
    padding: 0;
}

button.inline-license-link,
.auth-form button.inline-license-link {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0 2px;
    color: var(--blue);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-weight: 900;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    vertical-align: baseline;
}

button.inline-license-link:hover,
.auth-form button.inline-license-link:hover {
    color: #1647b8;
    background: transparent;
}

@media (max-width: 760px) {
    .demo-shell {
        overflow: auto;
    }

    .demo-topbar {
        height: auto;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .demo-actions {
        flex-wrap: wrap;
    }

    .demo-frame {
        height: calc(100vh - 154px);
        min-height: 520px;
    }
}

.empty-state {
    margin-top: 18px;
    padding: 18px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 22px 0 44px;
}

.detail-slider {
    margin-top: 18px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.detail-slider-main {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    border-radius: 14px;
}

.detail-slider-main > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(207, 214, 226, 0.85);
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
}

.slider-nav.prev {
    left: 16px;
}

.slider-nav.next {
    right: 16px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

.detail-slider-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
}

.detail-slider-thumbs button {
    width: 118px;
    flex: 0 0 118px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.detail-slider-thumbs button.active {
    border-color: var(--blue);
}

.detail-slider-thumbs img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.script-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-copy {
    color: #344054;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.detail-tabs {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.detail-tab-menu {
    display: flex;
    flex-wrap: wrap;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

.detail-tab-menu button {
    min-height: 48px;
    padding: 0 18px;
    color: #344054;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.detail-tab-menu button.active {
    color: var(--blue);
    background: #fff;
}

.detail-tab-panel {
    display: none;
    padding: 20px;
    color: #344054;
    line-height: 1.75;
}

.detail-tab-panel.active {
    display: block;
}

.detail-tab-panel h2,
.detail-tab-panel h3 {
    margin: 0 0 12px;
    color: var(--ink);
}

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

.feature-grid div {
    display: grid;
    gap: 5px;
    padding: 13px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.feature-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.feature-grid strong {
    color: var(--ink);
}

.detail-tag-cloud {
    margin-top: 8px;
}

.rating-summary {
    margin: 0 0 14px;
    padding: 11px 13px;
    background: #f3f7ff;
    border: 1px solid #cfdbff;
    border-radius: 12px;
    color: #344054;
    font-weight: 800;
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comment-item {
    padding: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.comment-item div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-item strong {
    color: var(--ink);
}

.comment-item span {
    color: #f59e0b;
    font-weight: 900;
    letter-spacing: 1px;
}

.comment-item p {
    margin: 9px 0;
}

.comment-item small,
.empty-state {
    color: var(--muted);
    font-weight: 800;
}

.comment-form {
    max-width: 640px;
}

.license-box {
    margin-top: 18px;
    padding: 18px;
    color: #344054;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.license-box h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.license-box p {
    margin: 0;
}

.compact-table {
    margin: 16px;
}

.compact-table div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
}

@media (max-width: 860px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .detail-slider {
        padding: 10px;
    }

    .detail-slider-thumbs button {
        width: 86px;
        flex-basis: 86px;
    }

    .detail-tab-menu button {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--line);
    }

    .detail-tab-panel {
        padding: 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .comment-item div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    padding: 24px 0 44px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    padding-top: 18px;
}

.support-form {
    display: grid;
    gap: 13px;
    padding: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.support-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.support-form input,
.support-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    font: inherit;
}

.support-form textarea {
    resize: vertical;
}

.support-form input:focus,
.support-form textarea:focus {
    outline: 3px solid rgba(37, 91, 216, 0.14);
    border-color: var(--blue);
}

.contact-info {
    display: grid;
    gap: 12px;
}

.contact-card {
    min-height: 96px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.contact-card svg {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.contact-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.contact-card strong {
    font-size: 16px;
    word-break: break-word;
}

.map-card {
    margin: 16px;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.map-card iframe {
    width: 100%;
    height: 240px;
    display: block;
    border: 0;
}

.map-card a {
    display: block;
    margin: 0;
    padding: 14px;
    color: var(--muted);
    font-weight: 700;
}

.support-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.support-topics a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: var(--blue);
    background: #eef4ff;
    border: 1px solid #c7d7ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.support-topics a::after {
    content: ">";
    font-size: 11px;
    opacity: 0.72;
}

.support-topics a:hover {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.faq-list {
    display: grid;
    gap: 12px;
    padding-top: 18px;
}

.faq-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.faq-item summary {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    cursor: pointer;
}

.faq-item summary::marker {
    color: var(--blue);
}

.faq-item summary span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.faq-item summary strong {
    font-size: 18px;
}

.faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: #344054;
}

.support-side-btn {
    width: 100%;
    margin-top: 14px;
}

.sitemap-layout {
    padding: 24px 0 44px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.sitemap-box {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.sitemap-box h2 {
    margin: 0 0 7px;
    font-size: 20px;
}

.sitemap-box a {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    color: #253044;
    font-weight: 800;
}

.sitemap-box a:hover {
    color: var(--blue);
    border-color: #c7d7ff;
}

.sitemap-wide {
    margin-top: 14px;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sitemap-links a {
    display: grid;
    justify-content: start;
}

.sitemap-links span {
    color: var(--teal);
    font-size: 11px;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .support-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .sitemap-grid,
    .sitemap-links {
        grid-template-columns: 1fr;
    }
}
