:root {
    --dark: #131313;
    --dark-2: #1e1e20;
    --bg: #f6f5f2;
    --card: #ffffff;
    --line: #e8e6e1;
    --text: #1b1b1b;
    --muted: #77746e;
    --body: #4a4844;
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --primary-soft: #fff0ea;
    --success: #1f9d61;
    --warning: #c98500;
    --danger: #e23d3d;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 20px rgba(20, 20, 20, .05);
    --shadow-lg: 0 14px 40px rgba(20, 20, 20, .12);
}

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

body {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

ul,
ol {
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* Buttons */
.btn-fill,
.btn-line,
.btn-soft,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.btn-fill {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.btn-fill:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-line {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-soft {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--card);
}

.btn-soft:hover {
    border-color: #c9c6bf;
    background: var(--bg);
}

.btn-soft.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: #fff;
}

.btn-white {
    border: 1px solid #fff;
    background: #fff;
    color: var(--primary-dark);
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.btn-fill.sm,
.btn-line.sm,
.btn-soft.sm,
.btn-white.sm {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-fill.lg {
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
}

/* Forms */
.form-label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.form-label .opt {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.form-control,
.form-select {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background-color: #fff;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .12);
}

.form-control::placeholder {
    color: #a9a6a0;
}

.form-check-input {
    border-color: #cfccc5;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .12);
}

.form-check-label a {
    color: var(--primary);
    font-weight: 500;
}

.form-hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.char-count {
    color: var(--muted);
    font-size: 12px;
}

.input-icon {
    position: relative;
}

.input-icon>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 44px;
}

.input-icon .toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    transition: background-color .2s, color .2s;
}

.icon-btn:hover {
    background: var(--bg);
    color: var(--text);
}

/* Dropdown & modal */
.dropdown-menu {
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item:active {
    background: var(--primary);
    color: #fff;
}

.dropdown-item.text-danger:active {
    color: #fff !important;
}

.modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 24px 8px;
    border: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 8px 24px 16px;
}

.modal-footer {
    padding: 0 24px 22px;
    border: 0;
    gap: 8px;
}

.modal-footer>* {
    margin: 0;
}

.report-options label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.report-options label:hover {
    border-color: #c9c6bf;
}

.report-options label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.report-options input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.report-options strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.report-options small {
    color: var(--muted);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 68px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: auto;
    max-width: 230px;
    height: 40px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav > a,
.nav-drop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #b9b9b9;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}

.main-nav > a:hover,
.nav-drop-toggle:hover,
.nav-drop-toggle[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.main-nav > a.active {
    color: #fff;
    background: rgba(255, 87, 34, .18);
}

.main-nav > a.active i {
    color: var(--primary);
}

/* How it works dropdown */
.nav-drop-toggle .caret {
    font-size: 11px;
    transition: transform .2s;
}

.nav-drop-toggle[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.nav-drop-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.how-panel.dropdown-menu {
    top: calc(100% + 14px);
    left: 0;
    width: 330px;
    padding: 18px 8px 8px;
}

.how-panel-head {
    margin: 0;
    padding: 0 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.how-panel .lifecycle {
    padding: 14px 12px 4px;
}

.how-panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.how-panel-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.about-panel-text {
    margin: 8px 0 14px;
    padding: 0 12px;
    color: var(--body);
    font-size: 13px;
}

.about-panel .stats {
    margin: 0 12px 14px;
}

.search {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 380px;
    margin-left: auto;
}

.search .bi {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
}

.search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border: 1px solid #2c2c2c;
    border-radius: 999px;
    background: #1f1f1f;
    color: #fff;
    outline: none;
    transition: border-color .2s, background-color .2s;
}

.search input::placeholder {
    color: #8a8a8a;
}

.search input:focus {
    border-color: var(--primary);
    background: #242424;
}

.header-btns {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.header-btns .btn-line {
    color: #fff;
    border-color: #444;
}

.header-btns .btn-line:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #333;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
}

/* Page */
.page {
    padding-top: 28px;
    padding-bottom: 56px;
}

.welcome {
    position: relative;
    overflow: hidden;
    padding: 32px;
    margin-bottom: 24px;
    border-left: 6px solid var(--primary);
    border-radius: var(--radius);
    background: var(--dark);
    color: #fff;
}

.welcome .eyebrow {
    margin-bottom: 12px;
}

.welcome h1 {
    max-width: 520px;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.welcome p {
    max-width: 480px;
    margin-bottom: 20px;
    color: #c9c9c9;
}

.welcome-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.welcome .btn-line {
    color: #fff;
    border-color: #555;
}

.welcome .btn-line:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffb39a;
    font-size: 12px;
    font-weight: 600;
}

.feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.feed-head h2 {
    font-size: 20px;
    font-weight: 600;
}

.feed-head p {
    color: var(--muted);
    font-size: 13px;
}

.day-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.day-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Feed search */
.feed-search {
    position: relative;
    margin-top: 14px;
}

.feed-search .bi {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.feed-search input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.feed-search input::placeholder {
    color: #a9a6a0;
}

.feed-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .12);
}

/* Feed layout toggle */
.feed-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
}

.view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s, color .2s;
}

.view-toggle button:hover {
    color: var(--text);
}

.view-toggle button.active {
    background: var(--dark);
    color: #fff;
}

.view-toggle button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@keyframes feed-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.feed.is-switching > .post-card {
    animation: feed-in .3s ease both;
}

/* Grid view */
@media (min-width: 576px) {
    [data-feed-view="grid"] .feed {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    [data-feed-view="grid"] .feed > .day-divider {
        grid-column: 1 / -1;
        margin: 6px 0 -4px;
    }

    [data-feed-view="grid"] .feed > .day-divider:first-child {
        margin-top: 22px;
    }

    [data-feed-view="grid"] .feed > .post-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        margin-bottom: 0;
        overflow: hidden;
    }

    [data-feed-view="grid"] .feed > .post-card.is-featured {
        grid-column: 1 / -1;
    }

    [data-feed-view="grid"] .feed > .post-card .media-grid {
        order: -1;
        margin: -20px -20px 16px;
        border-radius: 0;
        aspect-ratio: 16 / 10;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-head {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-head::before {
        content: "";
        order: 2;
        flex-basis: 100%;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-head .dropdown {
        order: 1;
        margin-left: auto;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-head .topic {
        display: inline-flex;
        order: 3;
        margin-left: 52px;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-title {
        font-size: 17px;
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .post-text {
        -webkit-line-clamp: 4;
    }

    [data-feed-view="grid"] .feed > .post-card:has(.media-grid) .post-text {
        -webkit-line-clamp: 2;
    }

    [data-feed-view="grid"] .feed > .post-card .post-foot {
        position: relative;
        gap: 6px 14px;
        padding-top: 30px;
        margin-top: auto;
        border-top: 0;
        font-size: 12px;
    }

    [data-feed-view="grid"] .feed > .post-card .post-foot::before {
        content: "";
        position: absolute;
        top: 16px;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--line);
    }

    [data-feed-view="grid"] .feed > .post-card:not(.is-featured) .foot-media {
        display: none;
    }
}

/* Post card */
.post-card {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow .25s, border-color .25s;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #dcd9d2;
}

.post-card.is-featured {
    border-color: rgba(255, 87, 34, .4);
    background: #fffaf7;
}

.post-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.post-by {
    min-width: 0;
    line-height: 1.35;
}

.author {
    display: block;
    font-weight: 600;
}

.author:hover {
    color: var(--primary);
}

.post-time {
    color: var(--muted);
    font-size: 12px;
}

.post-head .topic {
    margin-left: auto;
}

.topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.topic::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.t-orange {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.t-green {
    background: #e8f6ee;
    color: #1b7f4f;
}

.t-blue {
    background: #e9f1fd;
    color: #2a62c9;
}

.t-purple {
    background: #f1ecfd;
    color: #6a43c9;
}

.t-pink {
    background: #fdecf3;
    color: #c23a77;
}

.t-amber {
    background: #fdf4e2;
    color: #a86b00;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.post-title {
    margin-bottom: 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a:hover {
    color: var(--primary);
}

.post-text {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--body);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Media grid */
.media-grid {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #eee;
}

.media-grid.count-2 {
    grid-template-columns: 1fr 1fr;
}

.media-grid.count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.media-grid.count-3 .media-item:first-child {
    grid-row: span 2;
}

.media-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ddd;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.media-grid:hover .media-item img {
    transform: scale(1.03);
}

.media-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    font-size: 28px;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    transition: transform .25s;
}

.media-item:hover .media-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.media-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.post-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.post-foot>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--text);
    font-weight: 600;
}

.read-more i {
    transition: transform .2s;
}

.read-more:hover {
    color: var(--primary);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.pager-info {
    color: var(--muted);
    font-size: 13px;
}

.pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.pager-links a,
.pager-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 500;
    background: #fff;
}

.pager-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pager-links .current {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.pager-links .disabled {
    color: #bbb;
}

.pager-links .gap {
    min-width: auto;
    padding: 0 2px;
    border: 0;
    background: none;
}

/* Sidebar */
@media (min-width: 992px) {
    .sticky-lg {
        position: sticky;
        top: 92px;
    }
}

.box {
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px 0;
    font-size: 15px;
    font-weight: 600;
}

.box-head i {
    color: var(--primary);
}

.box-head a {
    margin-left: auto;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.box-body {
    padding: 12px 20px 20px;
}

.box-body p {
    color: var(--body);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.stats div {
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--bg);
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.stats span {
    color: var(--muted);
    font-size: 12px;
}

.topic-list {
    padding: 8px 10px 12px;
    list-style: none;
}

.topic-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    font-weight: 500;
    transition: background-color .2s;
}

.topic-list a:hover {
    background: var(--bg);
}

.topic-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 16px;
}

.lifecycle {
    padding: 16px 20px 6px;
    list-style: none;
}

.lifecycle li {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.lifecycle li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 2px;
    width: 2px;
    background: var(--line);
}

.step-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}

.lifecycle strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.lifecycle div span {
    color: var(--muted);
    font-size: 13px;
}

.support-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
}

.support-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.support-card h3 {
    font-size: 17px;
    font-weight: 600;
}

.support-card p {
    margin: 6px 0 16px;
    font-size: 13px;
    opacity: .92;
}

.support-card .pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-rules {
    padding: 8px 20px 18px 40px;
}

.mini-rules li {
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    color: var(--body);
}

.mini-rules li:last-child {
    border-bottom: 0;
}

/* Inner page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 52px;
    border-bottom: 4px solid var(--primary);
    background: var(--dark);
    color: #fff;
}

.page-hero .eyebrow {
    margin-bottom: 14px;
}

.page-hero h1 {
    margin-bottom: 10px;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
}

.page-hero p {
    max-width: 580px;
    color: #c4c4c4;
    font-size: 15px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    list-style: none;
    color: #9a9a9a;
    font-size: 13px;
}

.crumbs li+li::before {
    content: "/";
    margin-right: 8px;
    color: #555;
}

.crumbs a:hover {
    color: #fff;
}

.crumbs.light {
    color: var(--muted);
}

.crumbs.light li+li::before {
    color: #c9c6bf;
}

.crumbs.light a:hover {
    color: var(--primary);
}

.panel-card {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-card+.panel-card {
    margin-top: 20px;
}

.section-title {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 600;
}

.section-sub {
    margin-bottom: 24px;
    color: var(--muted);
}

.prose h2 {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.prose h3 {
    margin: 18px 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.prose p {
    margin-bottom: 12px;
    color: var(--body);
}

.prose ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.prose li {
    margin-bottom: 6px;
    color: var(--body);
}

/* Rules */
.rule-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.rule-item:first-of-type {
    border-top: 0;
    padding-top: 4px;
}

.rule-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

.rule-item h3 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.rule-item p {
    margin: 0;
    color: var(--body);
}

.toc {
    padding: 10px;
    list-style: none;
}

.toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--body);
    font-weight: 500;
    transition: background-color .2s, color .2s;
}

.toc a:hover,
.toc a.active {
    background: var(--bg);
    color: var(--primary);
}

.toc i {
    color: var(--primary);
}

.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 87, 34, .22);
    border-radius: 14px;
    background: var(--primary-soft);
}

.callout>i {
    color: var(--primary);
    font-size: 22px;
    line-height: 1.2;
}

.callout strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.callout p {
    margin: 0;
    color: var(--body);
}

.callout.info {
    border-color: #cfdef8;
    background: #eef4fe;
}

.callout.info>i {
    color: #2a62c9;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--body);
}

.check-list i {
    color: var(--success);
    font-size: 16px;
}

.check-list.no i {
    color: var(--danger);
}

/* Contact & support */
.info-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    margin-bottom: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
}

.info-card strong {
    display: block;
    font-weight: 600;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.info-card a {
    color: var(--primary);
    font-weight: 500;
}

.faq .accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px !important;
}

.faq .accordion-button {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.faq .accordion-button:not(.collapsed) {
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: none;
}

.faq .accordion-button:focus {
    box-shadow: none;
}

.faq .accordion-body {
    padding: 4px 20px 18px;
    color: var(--body);
}

.faq .show .accordion-body {
    background: var(--primary-soft);
}

.pay-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.pay-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pay-logo {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff;
    font-size: 28px;
}

.pay-card h2 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 600;
}

.pay-card>p {
    color: var(--body);
}

.pay-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    margin: 18px 0;
    border: 1px dashed #d6d3cc;
    border-radius: 12px;
    background: var(--bg);
    font-weight: 600;
}

.pay-handle small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.amount-chips button {
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    transition: border-color .2s, background-color .2s, color .2s;
}

.amount-chips button:hover {
    border-color: #00c244;
}

.amount-chips button.active {
    border-color: #00c244;
    background: #e6f9ed;
    color: #008a30;
}

.pay-card .btn-fill {
    margin-top: auto;
    height: 50px;
}

.pay-youpay .pay-logo {
    background: #5b3df0;
}

.pay-youpay .btn-fill {
    background: #5b3df0;
    border-color: #5b3df0;
}

.pay-youpay .btn-fill:hover {
    background: #4a2fd0;
    border-color: #4a2fd0;
}

.pay-cashapp .pay-logo {
    background: #00c244;
}

.pay-cashapp .btn-fill {
    background: #00c244;
    border-color: #00c244;
}

.pay-cashapp .btn-fill:hover {
    background: #00a83a;
    border-color: #00a83a;
}

.use-card {
    height: 100%;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.use-card .info-icon {
    margin-bottom: 14px;
}

.use-card h3 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.use-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.secure-note i {
    color: var(--success);
}

/* Single post */
.post-full {
    padding: 28px;
}

.post-full .post-head {
    margin-bottom: 18px;
}

.post-full h1 {
    margin: 4px 0 14px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.post-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--body);
    font-size: 12px;
    font-weight: 500;
}

.post-body {
    color: #33312e;
    font-size: 15px;
    line-height: 1.8;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote {
    margin-bottom: 14px;
}

.post-body ul,
.post-body ol {
    padding-left: 1.35em;
}

.post-body blockquote {
    padding: 2px 0 2px 14px;
    border-left: 3px solid var(--primary);
    color: #5c5852;
}

.post-body strong,
.post-body b {
    font-weight: 600;
}

.post-editor {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.post-editor.has-error,
.post-editor.is-over {
    border-color: #d64545;
}

.post-editor .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #faf9f7;
}

.post-editor .ql-container.ql-snow {
    border: 0;
    font-family: inherit;
    font-size: 14px;
}

.post-editor .ql-editor {
    min-height: 160px;
    max-height: 420px;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.6;
}

.post-editor .ql-editor.ql-blank::before {
    color: #a9a6a0;
    font-style: normal;
}

.post-editor .ql-snow .ql-stroke {
    stroke: #5c5852;
}

.post-editor .ql-snow .ql-fill {
    fill: #5c5852;
}

.post-editor .ql-snow.ql-toolbar button:hover,
.post-editor .ql-snow.ql-toolbar button.ql-active,
.post-editor .ql-snow.ql-toolbar .ql-picker-label:hover,
.post-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active {
    color: var(--primary);
}

.post-editor .ql-snow.ql-toolbar button:hover .ql-stroke,
.post-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary);
}

.post-editor .ql-snow.ql-toolbar button:hover .ql-fill,
.post-editor .ql-snow.ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary);
}

.post-editor:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .12);
}

.gallery {
    margin: 24px 0;
}

.gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    aspect-ratio: 16 / 10;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-size: 18px;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
    transition: background-color .2s, color .2s;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    color: #fff;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    margin-top: 10px;
    overflow-x: auto;
}

.gallery-thumbs button {
    flex: 0 0 88px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: none;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrap {
    margin: 24px 0;
}

.video-wrap video {
    display: block;
    width: 100%;
    max-height: 540px;
    border-radius: 14px;
    background: #000;
}

.media-caption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.info-list li:first-child {
    border-top: 0;
}

.info-list li>span:first-child {
    color: var(--muted);
}

.info-list li>span:last-child {
    font-weight: 500;
    text-align: right;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-card .avatar {
    width: 56px;
    height: 56px;
}

.author-card strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

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

.mini-post {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    transition: background-color .2s;
}

.mini-post:first-child {
    border-top: 0;
}

.mini-post:hover {
    background: #fcfbf9;
}

.mini-post img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
}

.mini-post strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.mini-post:hover strong {
    color: var(--primary);
}

.mini-post span {
    color: var(--muted);
    font-size: 12px;
}

/* Create post */
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px 20px;
    border: 2px dashed #d9d6cf;
    border-radius: 14px;
    background: #fbfaf8;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.dropzone:hover,
.dropzone.is-drag {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, .12);
}

.dz-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 22px;
    box-shadow: var(--shadow);
}

.dropzone strong {
    font-weight: 600;
}

.dropzone strong span {
    color: var(--primary);
}

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

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.preview-grid:not(:empty) {
    margin-top: 14px;
}

.preview-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.preview-item img,
.preview-item video {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #111;
}

.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
}

.preview-remove:hover {
    background: var(--danger);
}

.preview-meta {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 11px;
}

.upload-error {
    color: var(--danger);
    font-size: 13px;
}

.upload-error:not(:empty) {
    margin-top: 10px;
}

.form-section+.form-section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.form-section-title {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
}

.form-section-sub {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

/* Auth */
.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--bg);
}

.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 56px;
    overflow: hidden;
    border-right: 6px solid var(--primary);
    background: var(--dark);
    color: #fff;
}

.auth-side h2 {
    max-width: 440px;
    margin: 16px 0 24px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
}

.auth-support {
    max-width: 440px;
    margin: -8px 0 24px;
    color: #cfcfcf;
    font-size: 16px;
    line-height: 1.55;
}

.auth-points {
    list-style: none;
}

.auth-points li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #cfcfcf;
}

.auth-points i {
    color: var(--primary);
    font-size: 18px;
}

.auth-side .copy {
    color: #777;
    font-size: 13px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 600;
}

.auth-card .lead-sm {
    margin-bottom: 28px;
    color: var(--muted);
}

.auth-card .btn-fill {
    width: 100%;
    height: 50px;
}

.auth-switch {
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
}

.auth-switch a,
.link {
    color: var(--primary);
    font-weight: 600;
}

.link:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.auth-mobile-logo img {
    width: 160px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    color: var(--muted);
    font-weight: 500;
}

.back-home:hover {
    color: var(--primary);
}

.strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength span {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    transition: background-color .2s;
}

.strength[data-level="1"] span:nth-child(-n+1) {
    background: var(--danger);
}

.strength[data-level="2"] span:nth-child(-n+2) {
    background: #f39c12;
}

.strength[data-level="3"] span:nth-child(-n+3) {
    background: #7cb342;
}

.strength[data-level="4"] span {
    background: var(--success);
}

.strength-text {
    min-height: 18px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.turnstile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
}

.turnstile i {
    color: #f48120;
    font-size: 22px;
}

.turnstile strong {
    display: block;
    color: var(--text);
    font-weight: 500;
}

.turnstile-field .cf-turnstile {
    min-height: 65px;
}

.auth-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #bfe6cf;
    border-radius: var(--radius-sm);
    background: #effaf3;
    color: var(--body);
    font-size: 14px;
    line-height: 1.5;
}

.auth-notice i {
    color: #1b7f4f;
    font-size: 20px;
}

.auth-notice strong {
    display: block;
    color: var(--text);
    font-weight: 600;
}

/* Error page */
.error-page {
    padding: 90px 0 110px;
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 600;
    line-height: 1;
    color: var(--primary);
}

.error-page h1 {
    margin: 14px 0 8px;
    font-size: 26px;
    font-weight: 600;
}

.error-page p {
    max-width: 440px;
    margin: 0 auto 26px;
    color: var(--muted);
}

/* Footer */
.site-footer {
    padding-top: 52px;
    background: var(--dark);
    color: #a3a3a3;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand img {
    width: auto;
    max-width: 230px;
    height: 40px;
    margin-bottom: 14px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 320px;
}

.site-footer h4 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li+li {
    margin-top: 9px;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid #262626;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

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

/* Toast */
.ff-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity .25s, transform .25s;
}

.ff-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ff-toast i {
    color: #4cd38a;
    font-size: 18px;
}

.ff-toast.is-error i {
    color: #ff7b7b;
}

/* Account menu */
.user-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #444;
    border-radius: 50%;
    background: #262626;
    color: #fff;
    font-size: 18px;
    transition: border-color .2s, background-color .2s;
}

.user-avatar:hover,
.user-avatar[aria-expanded="true"] {
    border-color: var(--primary);
    background: rgba(255, 87, 34, .18);
}

.user-avatar:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.user-menu .dropdown-menu {
    margin-top: 10px !important;
}

/* Form validation */
.form-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
}

.form-control.has-error,
.form-select.has-error {
    border-color: var(--danger);
}

.form-control.has-error:focus,
.form-select.has-error:focus {
    box-shadow: 0 0 0 4px rgba(226, 61, 61, .12);
}

.callout.error {
    border-color: rgba(226, 61, 61, .25);
    background: #fdeeee;
}

.callout.error>i {
    color: var(--danger);
}

/* Account dashboard & profile */
.account-stats {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.my-post {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.my-post-thumb {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 88px;
    height: 66px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg);
    color: var(--muted);
    font-size: 22px;
}

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

.my-post-info {
    flex: 1;
    min-width: 0;
}

.my-post h3 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.my-post h3 a:hover {
    color: var(--primary);
}

.post-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.my-post-meta .post-status i {
    margin-right: 5px;
}

.post-status.pending {
    background: #fdf4e2;
    color: #a86b00;
}

.post-status.rejected {
    background: #fdeeee;
    color: var(--danger);
}

.post-status.featured {
    background: #fff6dc;
    color: #c98500;
}

.my-post-actions {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
}

.my-post-actions > .icon-btn:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.my-post-delete .icon-btn:hover {
    color: var(--danger);
    background: #fdeeee;
}

.my-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.my-post-meta i {
    margin-right: 4px;
}

.my-post-empty {
    padding: 28px 16px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    text-align: center;
    color: var(--muted);
}

.my-post-empty > i {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 26px;
}

.my-post-empty p {
    margin-bottom: 14px;
}

.account-details {
    margin-bottom: 16px;
}

.account-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.account-details dd {
    margin-bottom: 10px;
    word-break: break-word;
}

/* Post media */
.avatar-icon {
    display: inline-grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 18px;
}

.author-card .avatar-icon {
    color: var(--primary);
    font-size: 24px;
}

.form-section-title .opt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.dropzone.has-error {
    border-color: var(--danger);
}

.preview-name {
    display: block;
    padding: 6px 10px 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-item video + .preview-meta + .preview-name {
    padding-bottom: 8px;
}

/* Contact form spam trap: hidden from people, visible to naive bots */
.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Comments */
.comments {
    margin-top: 20px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
}

.comments-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
}

.comment-form,
.comment {
    display: flex;
    gap: 12px;
}

.comment-form {
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.comment-form-body,
.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-form textarea.form-control {
    min-height: 90px;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.comment-login {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--primary-soft);
}

.comment-login > i {
    color: var(--primary);
    font-size: 22px;
}

.comment-login p {
    margin: 0;
}

.comment-login a {
    color: var(--primary-dark);
    font-weight: 600;
}

.comments-empty {
    margin: 18px 0 4px;
    color: var(--muted);
    text-align: center;
}

.comment-avatar {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.comment-avatar.tone-0 { background: #fff0ea; color: #e64a19; }
.comment-avatar.tone-1 { background: #e8f1ff; color: #2f6fd6; }
.comment-avatar.tone-2 { background: #e6f6ee; color: #1f9d61; }
.comment-avatar.tone-3 { background: #f3ecfd; color: #7b4fd1; }
.comment-avatar.tone-4 { background: #fff6e0; color: #b57800; }

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.comment {
    align-items: flex-start;
}

.comment-main {
    position: relative;
    padding: 12px 16px 14px;
    border: 1px solid transparent;
    border-radius: 4px 16px 16px 16px;
    background: var(--bg);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.comment.is-author .comment-main {
    border-color: #ffd9cb;
    background: var(--primary-soft);
}

.comment:target .comment-main {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, .15);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding-right: 34px;
}

.comment-author {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.comment-head time {
    color: var(--muted);
    font-size: 12px;
}

.comment-head time::before {
    content: "\00b7";
    margin-right: 8px;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.comment-badge i {
    font-size: 10px;
}

.comment-body {
    margin: 6px 0 0;
    color: var(--body);
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.comment-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.comment-delete .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--muted);
    font-size: 14px;
    transition: opacity .2s ease, color .2s ease, background .2s ease;
}

.comment-delete .icon-btn:hover,
.comment-delete .icon-btn:focus-visible {
    color: var(--danger);
    background: #fdeeee;
}

@media (hover: hover) {
    .comment-delete .icon-btn {
        opacity: 0;
    }

    .comment:hover .comment-delete .icon-btn,
    .comment-delete .icon-btn:focus-visible {
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .comment-form,
    .comment {
        gap: 10px;
    }

    .comment-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .comment-main {
        padding: 10px 12px 12px;
    }

    .comment-body {
        font-size: 14px;
    }
}

/* Likes */
.like-form {
    display: inline-flex;
    margin: 0;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}

.like-btn i {
    font-size: 16px;
    transition: transform .2s;
}

.like-btn:hover {
    border-color: #f3a8b4;
    color: #e0245e;
}

.like-btn:active i {
    transform: scale(.85);
}

.like-btn.is-liked {
    border-color: #f7c1cc;
    background: #fdecef;
    color: #e0245e;
}

.like-btn.is-liked i {
    animation: like-pop .3s ease;
}

.like-btn:disabled {
    opacity: .7;
}

.like-btn.sm {
    height: auto;
    padding: 3px 10px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.like-btn.sm.is-liked {
    background: #fdecef;
    color: #e0245e;
}

@keyframes like-pop {
    50% {
        transform: scale(1.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .like-btn.is-liked i {
        animation: none;
    }
}

.foot-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.foot-comments:hover {
    color: var(--primary);
}

/* Home feed */
.media-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
    pointer-events: none;
}

.media-item .media-missing {
    position: absolute;
    inset: 0;
    background: #eee;
}

.feed-clear {
    color: var(--primary);
    font-weight: 500;
}

.feed-clear:hover {
    text-decoration: underline;
}

.topic-list a.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.feed-empty {
    padding: 44px 24px;
    background: var(--card);
    border: 1px dashed #d9d6cf;
    border-radius: var(--radius);
    text-align: center;
}

.feed-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 24px;
}

.feed-empty h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
}

.feed-empty p {
    max-width: 380px;
    margin: 0 auto 18px;
    color: var(--muted);
}

[data-feed-view="grid"] .feed > .feed-empty {
    grid-column: 1 / -1;
}

/* Existing media on the edit form */
.existing-label {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
}

.existing-label span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.existing-grid {
    margin-bottom: 14px;
}

.existing-item img,
.existing-item video {
    transition: opacity .2s, filter .2s;
}

.existing-item .preview-name {
    padding-bottom: 8px;
}

.existing-item .preview-remove {
    cursor: pointer;
}

.existing-item .preview-remove:has(input:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.removed-badge {
    display: none;
    position: absolute;
    left: 50%;
    top: 38%;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.existing-item.is-removed {
    border-color: rgba(226, 61, 61, .4);
}

.existing-item.is-removed img,
.existing-item.is-removed video {
    opacity: .35;
    filter: grayscale(1);
}

.existing-item.is-removed .removed-badge {
    display: block;
}

.existing-item.is-removed .preview-remove {
    background: var(--primary);
}

.media-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 60px;
    padding: 12px;
    color: #9a9a9a;
    font-size: 13px;
    text-align: center;
}

.media-missing i {
    font-size: 24px;
}

.my-post-thumb .media-missing span,
.gallery-thumbs .media-missing span {
    display: none;
}

.video-wrap .media-missing {
    border-radius: 14px;
    background: #111;
    aspect-ratio: 16 / 9;
}

img.is-missing,
video.is-missing {
    display: none;
}

.gallery-main.has-missing-media {
    display: grid;
    place-items: center;
}

@media (max-width: 575.98px) {
    .error-page {
        padding: 56px 0 72px;
    }

    .error-code {
        font-size: 84px;
    }

    .error-page .btn-fill,
    .error-page .btn-soft {
        flex: 1 1 100%;
    }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .main-nav > a,
    .nav-drop-toggle {
        padding: 8px 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-inner {
        gap: 14px;
    }

    .main-nav > a > i,
    .nav-drop-toggle > i:first-child {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 12px;
        background: var(--dark);
        border-top: 1px solid #262626;
        box-shadow: 0 20px 30px rgba(0, 0, 0, .25);
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav > a,
    .nav-drop-toggle {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav-drop-toggle .caret {
        margin-left: auto;
    }

    .how-panel.dropdown-menu {
        position: static;
        width: auto;
        margin: 4px 0 6px;
        border-color: #2a2a2a;
        background: #1b1b1b;
        box-shadow: none;
    }

    .how-panel-head,
    .how-panel .lifecycle strong {
        color: #fff;
    }

    .how-panel .lifecycle div span {
        color: #9a9a9a;
    }

    .how-panel .step-icon {
        background: rgba(255, 87, 34, .15);
    }

    .how-panel .lifecycle li:not(:last-child)::before {
        background: #333;
    }

    .how-panel-link {
        border-color: #2a2a2a;
    }

    .how-panel-link:hover {
        background: rgba(255, 87, 34, .12);
        color: #ffb39a;
    }

    .about-panel-text {
        color: #b9b9b9;
    }

    .about-panel .stats div {
        background: #242424;
    }

    .about-panel .stats strong {
        color: #fff;
    }

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

    .auth-side {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-btns {
        margin-left: auto;
    }

    .search {
        order: 5;
        flex: 0 0 100%;
        max-width: none;
    }

    .welcome {
        padding: 24px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .page-hero {
        padding: 40px 0 36px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .panel-card,
    .post-full {
        padding: 22px;
    }

    .post-full h1 {
        font-size: 22px;
    }

    .post-title {
        font-size: 17px;
    }

    .post-card {
        padding: 16px;
    }

    .post-head .topic {
        display: none;
    }

    .post-head .dropdown {
        margin-left: auto;
    }

    .read-more {
        margin-left: 0;
    }

    .pager {
        justify-content: center;
    }

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

@media (max-width: 575.98px) {
    .header-btns .btn-line {
        display: none;
    }

    .view-toggle {
        display: none;
    }

    .feed-head .btn-fill {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }

    .form-actions>* {
        flex: 1;
    }
}

@media (max-width: 400px) {
    .logo img {
        width: 130px;
        height: 34px;
    }

    .btn-fill,
    .btn-line {
        padding: 0 14px;
        height: 36px;
        font-size: 13px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Floating support button */
.support-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
}

.support-fab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 24px 0 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a50 0%, var(--primary) 55%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 10px 28px rgba(255, 87, 34, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: box-shadow .25s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.support-fab-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: support-ring 2.8s ease-out infinite;
    pointer-events: none;
}

.support-fab-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 18px;
    line-height: 1;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .25s;
}

.support-fab-btn:hover {
    box-shadow: 0 14px 34px rgba(255, 87, 34, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
    transform: translateY(-3px);
}

.support-fab-btn:hover .support-fab-icon {
    background: rgba(255, 255, 255, .3);
}

.support-fab-btn:focus-visible {
    outline: 3px solid rgba(255, 87, 34, .45);
    outline-offset: 3px;
}

.support-fab.is-open .support-fab-btn {
    background: linear-gradient(135deg, #2c2c2c 0%, var(--dark) 100%);
    box-shadow: 0 10px 28px rgba(20, 20, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: none;
}

.support-fab.is-open .support-fab-btn::before {
    animation: none;
}

.support-fab.is-open .support-fab-icon {
    background: rgba(255, 255, 255, .12);
    transform: rotate(90deg);
}

.support-fab-btn .bi-heart-fill {
    animation: support-beat 2.4s ease-in-out infinite;
}

@keyframes support-beat {
    0%, 70%, 100% { transform: scale(1); }
    80% { transform: scale(1.2); }
    90% { transform: scale(.95); }
}

@keyframes support-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 87, 34, .45); }
    70%, 100% { box-shadow: 0 0 0 16px rgba(255, 87, 34, 0); }
}

.support-dial {
    position: absolute;
    right: 3px;
    bottom: calc(100% + 16px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.support-dial-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.5);
    transform-origin: right center;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.support-fab.is-open .support-dial-item {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .25s ease calc(var(--d) * 70ms), transform .45s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d) * 70ms), visibility 0s;
}

.support-dial-label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(19, 19, 19, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(20, 20, 20, .2);
    color: #fff;
    line-height: 1.25;
    white-space: nowrap;
    transition: transform .25s;
}

.support-dial-label strong {
    font-size: 13px;
    font-weight: 600;
}

.support-dial-label small {
    color: #b9b9b9;
    font-size: 11px;
}

.support-dial-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 21px;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}

.dial-youpay .support-dial-icon {
    background: linear-gradient(135deg, #8a72ff 0%, #5b3df0 100%);
    box-shadow: 0 0 0 3px #fff, 0 8px 22px rgba(91, 61, 240, .45);
}

.dial-cashapp .support-dial-icon {
    background: linear-gradient(135deg, #2fe377 0%, #00b33e 100%);
    box-shadow: 0 0 0 3px #fff, 0 8px 22px rgba(0, 194, 68, .45);
}

.support-dial-item:hover .support-dial-icon,
.support-dial-item:focus-visible .support-dial-icon {
    transform: scale(1.1);
}

.support-dial-item:hover .support-dial-label,
.support-dial-item:focus-visible .support-dial-label {
    transform: translateX(-4px);
}

.support-dial-item:focus-visible {
    outline: none;
}

.support-dial-item:focus-visible .support-dial-icon {
    outline: 3px solid rgba(255, 87, 34, .5);
    outline-offset: 3px;
}

.has-support-fab .footer-bottom {
    padding-bottom: 92px;
}

@media (min-width: 992px) {
    .has-support-fab .footer-bottom {
        /* padding-right: 170px; */
        padding-bottom: 18px;
    }
}

@media (max-width: 575.98px) {
    .support-fab {
        right: 16px;
        bottom: 16px;
    }

    .support-fab-btn {
        height: 50px;
        padding: 0 18px 0 6px;
        font-size: 14px;
    }

    .support-fab-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .support-dial-icon {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .has-support-fab .ff-toast {
        bottom: 80px;
    }
}