*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background-color: #f5f5f7;
    color: #1f1f24;
    direction: rtl;
    text-align: right;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.button.primary {
    background-color: #2563eb;
    color: #fff;
}

.button.secondary {
    background-color: #fff;
    color: #1f1f24;
    border: 1px solid rgba(31, 31, 36, 0.1);
}

.button.ghost {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(31, 31, 36, 0.2);
}

.button.danger {
    background-color: #dc2626;
    color: #fff;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.button.danger:hover:not(:disabled) {
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.2);
}

.top-bar {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(31, 31, 36, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-bar h1 {
    margin: 0;
    font-size: 1.25rem;
}

.top-bar__right {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-content,
.admin-shell {
    max-width: 1120px;
    margin: 2rem auto 4rem;
    padding: 0 1.25rem 4rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.card h2,
.card h3,
.card h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.muted {
    color: #6b7280;
}

.small {
    font-size: 0.85rem;
}

.dashboard-surface {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.dashboard-header__note {
    margin-top: 0.35rem;
}

.dashboard-header__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-header__hint {
    color: #6b7280;
}

.dashboard-header__actions .dashboard-reset {
    white-space: nowrap;
}

.workspace-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(31, 31, 36, 0.08);
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.workspace-tabs::-webkit-scrollbar {
    height: 6px;
}

.workspace-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(31, 31, 36, 0.2);
    border-radius: 999px;
}

.workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: inherit;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workspace-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.workspace-tab:hover:not(.is-active) {
    background: #e5e7eb;
}

.workspace-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.workspace-tab:active {
    transform: translateY(1px);
}

.workspace-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.5rem;
}

.workspace-tab.is-active .workspace-tab__badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.workspace-panels {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workspace-panel {
    animation: panelFade 0.2s ease;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.js-enabled .workspace-panel {
    display: none;
}

body.js-enabled .workspace-panel.is-active {
    display: block;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-card {
    margin: 0;
}

.panel-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.help-trigger {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.help-trigger:hover,
.help-trigger:focus-visible {
    background: rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.help-trigger__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.help-panel {
    border-radius: 18px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: #eef2ff;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    color: rgba(17, 24, 39, 0.9);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
    position: relative;
}

.help-panel[hidden] {
    display: none;
}

.help-panel.is-visible {
    animation: help-panel-fade 0.25s ease;
}

.help-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.help-panel__header h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #1e3a8a;
}

.help-panel__close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(30, 64, 175, 0.12);
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-panel__close:hover,
.help-panel__close:focus-visible {
    background: rgba(30, 64, 175, 0.22);
    outline: none;
}

.help-panel__body {
    display: grid;
    gap: 0.75rem;
    line-height: 1.8;
}

.help-panel__list {
    margin: 0;
    padding: 0;
    list-style: disc inside;
    display: grid;
    gap: 0.6rem;
}

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

@keyframes help-panel-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-card__footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 31, 36, 0.08);
}

.panel-card__badge {
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.profile-summary__details {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.profile-summary__avatar img {
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

.profile-summary__form {
    display: grid;
    gap: 0.6rem;
}

.profile-summary__logins {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid rgba(31, 31, 36, 0.08);
    padding-top: 0.75rem;
}

.login-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.login-log-list li span {
    margin-left: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-block {
    background: #f9fafb;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(31, 31, 36, 0.08);
}

.stat-block__value {
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-block__label {
    font-size: 0.85rem;
    color: #6b7280;
}

.stat-block--alert {
    background: rgba(253, 230, 138, 0.4);
    border-color: rgba(217, 119, 6, 0.35);
}

.shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #eef2ff;
    color: #1f1f24;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.35);
}

.shortcut__badge {
    background: #1f2937;
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
}

.media-form {
    display: grid;
    gap: 1rem;
}

.media-uploader {
    border: 1px dashed rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 16px;
    padding: 1.2rem;
    display: grid;
    gap: 0.9rem;
}

.media-uploader__section {
    display: grid;
    gap: 0.45rem;
}

.media-uploader__label {
    font-weight: 600;
    display: grid;
    gap: 0.45rem;
}

.media-uploader__queue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.media-uploader__hidden-inputs {
    display: none;
}

.media-uploader__hint {
    margin: 0;
}

.media-uploader__notice {
    font-size: 0.8rem;
    color: #dc2626;
}

.media-uploader__notice.is-success {
    color: #047857;
}

.media-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.4);
    font-size: 0.8rem;
    color: #1f1f24;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.media-chip button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    color: #dc2626;
    padding: 0;
}

.media-chip button:hover {
    text-decoration: underline;
}

.media-chip__index {
    font-weight: 700;
    color: #2563eb;
}

.media-fieldset {
    border: 1px dashed rgba(15, 23, 42, 0.25);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.15rem;
    margin: 0.5rem 0 1rem;
    background: rgba(249, 250, 251, 0.7);
}

.media-fieldset.is-disabled {
    opacity: 0.65;
}

.media-fieldset legend {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 0.35rem;
}

.media-fieldset__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.media-fieldset__label input[type="file"] {
    direction: ltr;
}

.media-fieldset__video {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.media-fieldset__player {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    padding: 0;
}

.media-fieldset__thumbnail img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.media-fieldset__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.media-fieldset__meta li {
    white-space: nowrap;
}

.aparat-embed {
    width: 100%;
    min-height: 220px;
}

.aparat-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

.existing-images {
    margin: 0.75rem 0 1.25rem;
}

.existing-images__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.existing-image {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 18px;
    padding: 0.5rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.existing-image.is-dragging {
    opacity: 0.8;
    cursor: grabbing;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15), inset 0 0 0 2px #2563eb;
}

.existing-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.existing-image__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
}

.existing-image__drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.existing-image__handle {
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.1em;
}

.panel-card .page-list,
.panel-card .post-list {
    margin-top: 1rem;
}

.panel-card .stacked-forms {
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-header__actions {
        justify-content: flex-start;
    }

    .workspace-tabs {
        gap: 0.5rem;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

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

@media (max-width: 767px) {
    .landing-nav {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .landing-nav__links {
        display: none;
    }

    .landing-nav__actions .button.ghost {
        display: none;
    }
}

.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #f5f5f7 100%);
    color: #0f172a;
}

.landing-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.landing-nav__brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: #1d4ed8;
}

.landing-nav__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.landing-nav__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-nav__links a {
    color: #0f172a;
    font-weight: 600;
    opacity: 0.7;
}

.landing-nav__links a:hover {
    opacity: 1;
}

.landing-nav__actions {
    display: flex;
    gap: 0.75rem;
}

.landing-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2.5rem;
}

.landing-hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.landing-hero__content h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.landing-hero__content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: rgba(15, 23, 42, 0.85);
}

.landing-hero__support {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.7;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.landing-hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.landing-hero__illustration {
    width: min(420px, 100%);
    max-width: 100%;
    border-radius: 28px;
    box-shadow: 0 32px 60px rgba(79, 70, 229, 0.18);
    border: 8px solid rgba(255, 255, 255, 0.6);
}

.landing-hero__badge {
    position: absolute;
    inset-inline-end: -1.5rem;
    inset-block-start: -1.5rem;
    width: 110px;
    height: 110px;
    border-radius: 32px;
    border: 8px solid #f8fafc;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
    background: #fff;
}

.landing-hero__stats {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.landing-hero__stats div {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1rem 1.6rem;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.landing-hero__stats strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
    color: #1d4ed8;
}

.landing-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.landing-section {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.landing-section h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.landing-section__lead {
    margin: 0 0 1.5rem;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.landing-audience {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-audience li {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.6rem;
    min-height: 150px;
}

.landing-audience strong {
    font-size: 1.05rem;
    color: #1d4ed8;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.landing-features article {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.02));
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.story-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.story-card__media--square {
    aspect-ratio: 1 / 1;
}

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

.story-card__body {
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.story-card__body h3 {
    margin: 0;
    font-size: 1.05rem;
}

.story-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: auto;
    word-break: break-all;
}

.landing-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.04));
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.85);
}

.landing-checklist {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.landing-checklist li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: start;
    color: rgba(15, 23, 42, 0.78);
    line-height: 1.7;
}

.landing-checklist li::before {
    content: "\2713";
    color: #16a34a;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.landing-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.landing-page-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.landing-page-card .button {
    align-self: flex-start;
}

.landing-steps {
    list-style: decimal inside;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.landing-steps--card {
    background: transparent;
    list-style-position: inside;
    gap: 1rem;
}

.landing-steps--card li {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.6rem;
}

.landing-steps--card strong {
    font-size: 1.1rem;
    color: #1d4ed8;
}

.landing-steps--card p {
    margin: 0;
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.7;
}

.step-tip {
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    color: #1e3a8a;
    font-size: 0.92rem;
}

.landing-step-note {
    margin-top: 1.2rem;
    background: rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    color: #312e81;
    line-height: 1.7;
}

.landing-footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: rgba(15, 23, 42, 0.6);
}

.public-report {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 0.75rem;
}

.public-report h2 {
    margin: 0;
    font-size: 1.15rem;
}

.public-report__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.public-report__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.public-report__toggle-icon {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.public-report__body {
    display: grid;
    gap: 1rem;
}

.public-report__body[hidden] {
    display: none;
}

.public-report__flash {
    margin: 0;
}

.public-report__form {
    display: grid;
    gap: 1rem;
}

.public-report__form textarea {
    min-height: 120px;
}

.public-report__form label {
    display: grid;
    gap: 0.4rem;
}

.public-report__form .captcha-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-report__form .captcha-field img {
    border-radius: 10px;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.12);
}

.stacked-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.stacked-form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #374151;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 31, 36, 0.1);
    font: inherit;
    background-color: #fafafa;
    text-align: right;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.flash {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.flash-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.flash-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.flash-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.post-list {
    display: grid;
    gap: 1.5rem;
}

.post-item {
    border: 1px solid rgba(31, 31, 36, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.post-item__header h3 {
    margin: 0;
}

.post-item__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.inline-form {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-item__form {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-item__form input[type="file"] {
    width: 100%;
}

.page-list {
    display: grid;
    gap: 1.5rem;
}

.page-item {
    border: 1px solid rgba(31, 31, 36, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
    overflow: hidden;
}

.page-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-item__header img {
    border-radius: 16px;
    object-fit: cover;
}

.page-item__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0 0 0.35rem;
}

.page-item__title-row h4 {
    margin: 0;
}

.page-item__doc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
}

.page-reject {
    margin-top: 0.75rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    padding-top: 0.75rem;
}

.page-reject__summary {
    cursor: pointer;
    font-weight: 600;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.page-reject__form {
    margin-top: 0.6rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #1f2937;
    margin: 0.6rem 0 1rem;
}

.consent-checkbox input {
    width: auto;
    margin-top: 0.2rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    border: 1px solid transparent;
}

.status-pill--success {
    color: #0f766e;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.24);
}

.status-pill--info {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.24);
}

.status-pill--danger {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.24);
}

.status-pill--muted {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.12);
    border-color: rgba(107, 114, 128, 0.2);
}

.status-pill--inline {
    margin-inline-start: 0.35rem;
}

.page-directory__alert {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #dc2626;
    font-weight: 600;
}

.page-status-warning {
    margin-top: 0.75rem;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: #b91c1c;
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
}

.page-status-warning strong {
    font-size: 0.95rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.92));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    position: relative;
    cursor: help;
}

.verified-badge--page {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.9));
}

.verified-badge--user {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.92));
}

.verified-badge::after {
    content: attr(data-note);
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    inset-block-end: calc(100% + 0.6rem);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.4;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: normal;
    z-index: 120;
}

.verified-badge::before {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(6px);
    inset-block-end: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.verified-badge:focus-visible::after,
.verified-badge:focus-visible::before,
.verified-badge:hover::after,
.verified-badge:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.verified-badge__icon {
    font-size: 0.8rem;
}

.verified-badge--inline {
    margin-inline-start: 0.35rem;
}

.verified-badge--inline::after {
    inset-inline-start: 50%;
    transform: translateX(-50%);
}

.verified-badge--inline::before {
    inset-inline-start: 50%;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
}

.form-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-heading h4 {
    margin: 0;
    font-size: 1.05rem;
}

.identity-panel {
    display: grid;
    gap: 1.2rem;
}

.identity-panel__column {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.identity-panel__column--wide {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.18);
}

.identity-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.identity-documents {
    display: grid;
    gap: 0.55rem;
}

.identity-documents h6 {
    margin: 0;
    font-size: 0.92rem;
}

.rule-callout {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-block: 0.5rem 0.8rem;
}

.rule-callout__list {
    margin: 0.4rem 1.2rem 0;
    padding: 0;
    color: #1f2937;
    font-size: 0.9rem;
}

.page-auth-metrics,
.page-auth-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
}

.page-auth-metric,
.page-auth-requirement {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.6rem 0.75rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.page-auth-metric__label,
.page-auth-requirement__label {
    font-weight: 600;
}

.page-auth-metric__value,
.page-auth-requirement__value {
    font-size: 1.05rem;
}

.page-auth-metric__hint,
.page-auth-requirement__hint {
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.7);
}

.page-auth-metric.is-ok,
.page-auth-requirement.is-ok {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(236, 253, 245, 0.8);
    color: #0f766e;
}

.page-auth-metric.is-missing,
.page-auth-requirement.is-missing {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(254, 226, 226, 0.7);
    color: #b91c1c;
}

.requirement-list {
    margin: 0.5rem 1.2rem 0;
    color: #b91c1c;
    font-size: 0.85rem;
    line-height: 1.6;
}

.auth-request-list {
    display: grid;
    gap: 1.2rem;
}

.auth-request {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.75rem;
    background: #f9fafb;
}

.auth-request__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-request__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-request__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-request__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.auth-request textarea {
    resize: vertical;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.loading-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay__spinner {
    display: grid;
    gap: 0.75rem;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.loading-overlay__icon {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading-spin 0.85s linear infinite;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

body.is-loading {
    cursor: progress;
}

body.is-loading * {
    cursor: inherit;
}

.page-console {
    display: grid;
    grid-template-columns: minmax(240px, 260px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.page-console__nav {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.page-console__title {
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
}

.page-directory {
    display: grid;
    gap: 0.75rem;
    max-height: min(70vh, 540px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.page-directory__item {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-directory__item.is-active {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.page-directory__item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.page-directory__title {
    font-weight: 700;
    color: #0f172a;
}

.page-directory__meta {
    display: block;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.page-console__content {
    display: grid;
    gap: 1.5rem;
}

/*.page-console [data-role="page-detail"] {
    display: none;
}

.page-console [data-role="page-detail"].is-active {
    display: grid;
}*/

.report-list {
    display: grid;
    gap: 1.25rem;
}

.report-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.report-item--compact {
    gap: 0.6rem;
    padding: 0.9rem;
}

.report-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.report-item__header h4 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #1f2937;
}

.report-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.report-status--pending {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.report-status--resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.report-status--dismissed {
    background: rgba(248, 113, 113, 0.18);
    color: #991b1b;
}

.report-item__target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.report-item__target a {
    color: #1d4ed8;
    font-weight: 600;
}

.report-item__target-label {
    font-weight: 600;
    color: #334155;
}

.report-target-status {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.report-item__contact {
    color: #1f2937;
}

.report-item__description {
    line-height: 1.75;
    color: rgba(15, 23, 42, 0.85);
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    padding: 0.75rem;
}

.report-item__description--compact {
    background: transparent;
    padding: 0;
    color: rgba(15, 23, 42, 0.7);
}

.report-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.report-item__actions form {
    margin: 0;
}

.report-item__actions .button {
    white-space: nowrap;
}

.report-decision-form textarea {
    min-height: 72px;
}

.report-decision-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-item__footnote {
    margin: 0;
    color: rgba(15, 23, 42, 0.55);
}

.report-item__note {
    margin: 0;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .report-item__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-status {
        align-self: flex-start;
    }

    .report-item__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .report-item__actions .button {
        width: 100%;
        text-align: center;
    }

    .report-decision-form__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.floating-shortcuts {
    position: fixed;
    inset-inline-end: calc(env(safe-area-inset-right, 0px) + 1rem);
    inset-inline-start: auto;
    inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    z-index: 950;
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    background: rgba(15, 23, 42, 0.65);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
}

.floating-shortcuts__item {
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1;
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.floating-shortcuts__item:hover,
.floating-shortcuts__item:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.floating-shortcuts__item--admin {
    background: rgba(59, 130, 246, 0.92);
    border-color: rgba(59, 130, 246, 0.95);
}

.floating-shortcuts__item--admin:hover,
.floating-shortcuts__item--admin:focus-visible {
    background: rgba(29, 78, 216, 0.95);
}

.floating-shortcuts__label {
    display: inline-block;
}

@media (max-width: 640px) {
    .floating-shortcuts {
        inset-inline: 0.75rem;
        inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
        justify-content: center;
        gap: 0.35rem;
        padding: 0.4rem 0.55rem;
    }

    .floating-shortcuts__item {
        flex: 1;
        padding: 0.4rem 0.5rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 960px) {
    .page-console {
        grid-template-columns: 1fr;
    }

    .page-console__nav {
        position: static;
    }

    .page-directory {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .page-directory__item {
        min-width: 220px;
        flex: 0 0 auto;
    }
}

@media (max-width: 720px) {
    .landing-hero__badge {
        width: 88px;
        height: 88px;
        inset-inline-end: -1rem;
        inset-block-start: -1rem;
        border-width: 6px;
    }
    .landing-hero__illustration {
        width: min(320px, 100%);
    }
}

.page-item__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.page-metric {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.3rem;
}

.page-metric--primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05));
    border-color: rgba(37, 99, 235, 0.28);
    color: #1e3a8a;
}

.page-metric--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.page-metric--warning {
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(250, 204, 21, 0.18);
}

.page-metric--danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(248, 113, 113, 0.16);
}

.page-metric--neutral {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(226, 232, 240, 0.3);
}

.page-metric__label {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.65);
}

.page-metric__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.9);
}

.page-metric--success .page-metric__value {
    color: #166534;
}

.page-metric--warning .page-metric__value {
    color: #b45309;
}

.page-metric--danger .page-metric__value {
    color: #b91c1c;
}

.page-metric--neutral .page-metric__value {
    color: #1f2937;
}

.page-metric__badge {
    align-self: start;
    display: inline-flex;
    margin-top: 0.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.pending-avatar-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pending-avatar-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.pending-avatar-info img,
.pending-avatar-preview img {
    border-radius: 14px;
    object-fit: cover;
}

.page-owner-tools {
    border-top: 1px solid rgba(31, 31, 36, 0.08);
    padding-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.page-owner-tools__section {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: grid;
    gap: 0.85rem;
    height: 100%;
}

.page-owner-tools__section--wide {
    grid-column: 1 / -1;
    background: #eef2ff;
    border-color: rgba(37, 99, 235, 0.18);
}

.page-owner-tools__title {
    margin: 0;
    font-size: 1.05rem;
    color: #1d4ed8;
}

.page-owner-tools__group {
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.6rem;
}

.page-owner-tools__group + .page-owner-tools__group {
    margin-top: 0.75rem;
}

.page-owner-tools__section--wide > .page-owner-tools__group {
    background: rgba(255, 255, 255, 0.94);
}

.page-request-docs {
    margin-top: 1rem;
}

.page-request-docs h6 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #1f2937;
}

.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.document-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
}

.document-list__item > div {
    display: grid;
    gap: 0.3rem;
}

.document-list__meta {
    color: rgba(15, 23, 42, 0.6);
}

.document-list__actions {
    margin: 0;
}

.member-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.member-list__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(31, 31, 36, 0.08);
}

.member-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.member-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.member-list--compact {
    gap: 0.5rem;
}

.member-list--compact .member-list__item {
    padding-bottom: 0.5rem;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.inline-form input[type="text"] {
    width: 160px;
    text-align: right;
}

.inline-form input[name="code"] {
    direction: ltr;
    text-align: center;
    letter-spacing: 0.2em;
}

.usage-indicator {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
}

.usage-indicator__alert {
    color: #dc2626;
    font-weight: 600;
}

.quota-form {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.quota-form label {
    display: grid;
    gap: 0.3rem;
}

.quota-form input[type="number"] {
    width: 140px;
    direction: ltr;
    text-align: center;
}

.page-plan-summary {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.35rem;
}

.page-plan-summary p {
    margin: 0;
}

.plan-summary__title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.plan-payment-instructions {
    margin: 0.6rem 0;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    color: #1f2937;
    font-size: 0.85rem;
}

.plan-payment-instructions p {
    margin: 0.35rem 0 0;
}

.page-plan-summary--warning {
    border-color: rgba(217, 119, 6, 0.35);
    background: rgba(251, 191, 36, 0.12);
}

.page-plan-summary--expired {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(248, 113, 113, 0.18);
}

.page-plan-summary--inactive {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(226, 232, 240, 0.25);
}

.stacked-form--compact {
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.plan-request-history {
    margin-top: 0.75rem;
}

.plan-request-history__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.plan-request-history__item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.plan-status {
    margin: 0;
    font-weight: 600;
}

.plan-status--warning {
    color: #b45309;
}

.plan-status--expired {
    color: #b91c1c;
}

.plan-status--inactive {
    color: #475569;
}

.plan-approval-list {
    display: grid;
    gap: 1rem;
}

.plan-approval-item {
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    padding: 1rem;
    background: #f9fafb;
}

.plan-approval-item__header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.plan-approval-item__evidence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
}

.plan-approval-item__evidence img {
    width: 120px;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.plan-management-list {
    display: grid;
    gap: 1rem;
}

.plan-management-item {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 1rem;
    background: #f8fafc;
    position: relative;
}

.plan-management-item.is-inactive {
    opacity: 0.7;
}

.post-container {
    padding: 2rem 1rem 3rem;
}

.post-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.post-card__header {
    position: relative;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}


.post-video {
    margin: 1.25rem 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.post-video__player {
    background: #000;
    padding: 0;
}

.post-video__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #f1f5f9;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.85);
}

.post-video__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
    margin: 1rem 0;
}

.post-slider .slider__viewport {
    margin: 0 3rem;
}
.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    padding: 1rem 2rem;
}

.post-gallery__item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.post-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 0 2rem 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #1f1f24;
}

.post-card__footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.post-author__label {
    font-weight: 600;
    margin-left: 0.5rem;
}

.post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.post-page .button {
    min-width: 150px;
}

@media (max-width: 640px) {

    .post-slider .slider__viewport {
        margin: 0;
    }

    .slider__nav--prev {
        left: 0.4rem;
    }

    .slider__nav--next {
        right: 0.4rem;
    }

    .post-card__header,
    .post-gallery,
    .post-body,
    .post-card__footer {
        padding: 1rem 1.25rem;
    }

    .post-gallery {
        grid-template-columns: 1fr;
    }

    .post-video {
        margin: 1rem;
    }
}

.plan-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0 1.5rem;
}

.plan-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.plan-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 999px;
}

.plan-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.plan-table thead {
    background: #2563eb;
    color: #fff;
}

.plan-table th,
.plan-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.9rem;
}

.plan-table th {
    font-weight: 700;
}

.plan-table tr:last-child td {
    border-bottom: none;
}

.plan-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.plan-table .plan-table__note {
    font-size: 0.85rem;
    color: #475569;
}

.plan-form__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plan-form__grid label {
    flex: 1 1 160px;
}

.plan-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.plan-form__toggle {
    margin-top: 0.5rem;
}

.plan-form__toggle .button {
    padding: 0.4rem 0.9rem;
}

@media (max-width: 600px) {
    .admin-shell {
        overflow-x: hidden;
    }

    .plan-approval-item__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-approval-item__evidence img {
        width: 100px;
    }
}

.publish-form.highlight input[type="text"] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.status {
    text-transform: capitalize;
}

.status-published {
    color: #15803d;
}

.status-pending {
    color: #d97706;
}

.status-draft {
    color: #2563eb;
}

.image-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.image-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.image-list__item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(31, 31, 36, 0.08);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #111827, #1e293b);
    color: #fff;
}

.auth-card {
    background: #fff;
    color: #1f1f24;
    padding: 2rem;
    border-radius: 20px;
    width: min(400px, 90vw);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 0;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.4rem;
}

.input-help {
    font-size: 0.8rem;
    color: #6b7280;
}

.captcha-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-field img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.button--small {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
}

.auth-top-links {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    text-align: right;
}

.auth-top-links .back-home-link {
    color: #2563eb;
    font-weight: 600;
}

.code-request-group {
    display: grid;
    gap: 0.75rem;
}

.code-request-group label {
    display: grid;
    gap: 0.4rem;
}

.code-request-group .button {
    align-self: end;
}

.terms-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4b5563;
}

.terms-consent input[type="checkbox"] {
    margin-top: 0.3rem;
}

.terms-consent a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.terms-consent a:hover {
    text-decoration: underline;
}

@media (min-width: 600px) {
    .code-request-group {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 1rem;
}

.public-page {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}

.public-header__avatar {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.public-header .small {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.6);
}

.public-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-follow-controls {
    margin: 1rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.page-follow-controls__count {
    margin: 0;
    font-weight: 600;
}

.page-follow-controls__count strong {
    font-weight: 700;
    color: #2563eb;
}

.page-follow-controls__form {
    gap: 0.75rem;
}

.page-follow-controls__status {
    font-size: 0.9rem;
    color: #2563eb;
}

.page-owner-card {
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 360px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 18px;
    padding: 0.75rem 1rem;
}

.page-owner-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    font-weight: 700;
    color: #2563eb;
}

.page-owner-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-owner-card__fallback {
    font-size: 1.1rem;
}

.page-owner-card__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.page-owner-card__label {
    font-size: 0.75rem;
    color: #475569;
}

.page-owner-card__name {
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
}

.page-owner-card__name:hover {
    color: #2563eb;
}

.page-owner-card__username {
    font-size: 0.8rem;
    color: #64748b;
}

.gallery {
    flex: 1;
    padding: 0 1rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.explore-load-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.explore-sentinel {
    width: 100%;
    height: 1px;
    grid-column: 1 / -1;
}

.explore-sentinel {
    width: 100%;
    height: 1px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1 / 1;
}

.gallery--book .gallery-item {
    aspect-ratio: auto;
}

.gallery-item__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gallery-item__tag:hover {
    background: rgba(37, 99, 235, 0.85);
    text-decoration: none;
}

.gallery-item__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(37, 99, 235, 0.88);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.gallery-item--followed {
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}

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

.gallery-item--video {
    background: #0b1120;
}

.gallery-item__media-flag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.gallery-item__video-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: #0f172a;
    overflow: hidden;
}

.gallery-item__video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.gallery-item__video-label {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    z-index: 2;
}

.gallery-item__video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.gallery-item.text-only {
    background: linear-gradient(130deg, #6366f1, #3b82f6);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item__content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.gallery-item__meta {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.gallery-item__meta time {
    display: block;
}

.gallery-item__meta--text {
    position: static;
    margin-top: 1.25rem;
    display: inline-block;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
    padding: 0.25rem 0.7rem;
    border-radius: 10px;
    font-size: 0.78rem;
    pointer-events: auto;
    box-shadow: none;
}

.public-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(31, 31, 36, 0.08);
    font-size: 0.9rem;
    color: #6b7280;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    max-width: min(90vw, 720px);
    width: 100%;
    padding: 1.5rem;
    z-index: 1;
    display: grid;
    gap: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
}

.modal__slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

.slider__viewport {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
}

.slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    transition: transform 0.3s ease;
}

.slider__item {
    display: none;
    margin: 0;
    width: 100%;
    height: 100%;
    place-items: center;
}

.slider__item.is-active {
    display: grid;
}

.slider__item img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 18px;
    background: #0f172a;
}

.slider__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.slider__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider__nav--prev {
    left: 0.75rem;
}

.slider__nav--next {
    right: 0.75rem;
}

.modal__caption {
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    text-align: right;
    display: grid;
    gap: 0.4rem;
}

.modal__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal__author-avatar {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.modal__author-fallback {
    font-weight: 700;
    color: #2563eb;
}

.modal__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.modal__author-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.modal__author-name {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.modal__author-name:hover {
    color: #2563eb;
}

.modal__date {
    margin: 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
}

.modal__page-link {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

.modal__page-link a {
    color: #2563eb;
    font-weight: 600;
}

.modal-open {
    overflow: hidden;
}

.static-page {
    background: linear-gradient(150deg, #111827, #1f2937);
    min-height: 100vh;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
}

.static-header {
    padding: 1.5rem 1rem 0;
}

.static-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.static-nav__brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #f9fafb;
    text-decoration: none;
}

.static-nav__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.static-nav__links a {
    color: rgba(249, 250, 251, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.static-nav__links a.is-active,
.static-nav__links a:hover {
    color: #fff;
}

.static-nav__actions {
    display: flex;
    gap: 0.5rem;
}

.static-hero {
    max-width: 720px;
    margin: 3rem auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.static-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.static-hero .muted {
    color: rgba(229, 231, 235, 0.85);
}

.static-content {
    background: #f9fafb;
    color: #111827;
    border-radius: 24px 24px 0 0;
    padding: 3rem 1.5rem 4rem;
    box-shadow: 0 -30px 60px rgba(15, 23, 42, 0.2);
    flex: 1;
}

.terms-section {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.terms-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    line-height: 1.9;
}

.terms-card h2 {
    margin-top: 0;
    color: #0f172a;
}

.terms-card ul {
    margin: 0.75rem 1.25rem 0;
    padding: 0;
    list-style: disc;
    color: #374151;
}

.faq-section {
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.faq-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #111827;
}

.faq-accordion {
    display: grid;
    gap: 1rem;
}

.faq-accordion details {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.faq-accordion summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '﹀';
    float: left;
    transition: transform 0.2s ease;
}

.faq-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.faq-accordion p {
    margin: 0.75rem 0 0;
    line-height: 1.8;
    color: #374151;
}

.profile-hero {
    max-width: 860px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.profile-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1d4ed8;
}

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

.profile-hero__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-hero__details h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    color: #fff;
}

.profile-hero__name {
    margin: 0;
    font-size: 1.15rem;
    color: #cbd5f5;
    font-weight: 600;
}

.profile-hero__details .muted {
    margin: 0;
    color: #6b7280;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.profile-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #909dae;
    font-size: 0.9rem;
}

.profile-stats strong {
    font-size: 1.4rem;
    color: #8d99a8;
}

.profile-section {
    max-width: 960px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    display: grid;
    gap: 1rem;
}

.profile-section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.profile-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile-page-list li {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 0.4rem;
}

.profile-page-list a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.profile-page-list a:hover {
    text-decoration: underline;
}

.profile-page-list .profile-page-meta {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.profile-gallery {
    display: grid;
    gap: 1rem;
}

.profile-gallery .empty-state {
    color: #6b7280;
    text-align: right;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-weight: 600;
}

.static-footer {
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(249, 250, 251, 0.8);
}

.static-footer a {
    color: #fff;
    text-decoration: none;
}

.static-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .static-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .static-nav__links {
        order: 3;
    }

    .static-nav__actions {
        order: 2;
    }

    .static-hero {
        margin-top: 2rem;
    }

    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-hero__details {
        align-items: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-section {
        padding: 0 0.5rem;
    }
}

.empty-state {
    text-align: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination__link {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: #fff;
    font-weight: 600;
    color: #1f1f24;
}

.pagination__link:hover:not(.is-disabled) {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination__link.is-disabled {
    border-color: rgba(148, 163, 184, 0.4);
    color: rgba(148, 163, 184, 0.9);
    cursor: default;
}

.pagination__status {
    font-weight: 600;
    color: #374151;
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .post-item__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form {
        width: 100%;
    }

    .inline-form input[type="text"] {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .modal__content {
        padding: 1rem;
    }

    .slider__nav {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 767px) {
    .modal {
        align-items: flex-start;
    }

    .modal__content {
        margin: 1.5rem 1rem;
        max-height: 96vh;
    }

    .slider__viewport {
        max-height: 65vh;
    }

    .slider__item img {
        max-height: 65vh;
    }
}
