* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--hayef-bg);
    color: var(--hayef-text);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}

a {
    color: var(--hayef-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    width: 96%;
    max-width: 1150px;
    margin: 20px auto;
    background: var(--hayef-panel);
    border: 1px solid #aaa;
    box-shadow:
        0 1px 4px rgba(0,0,0,.15);
}

.top-bar {
    min-height: 58px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
    border-bottom:
        3px solid
        var(--hayef-header-dark);
}

.logo {
    font-size: 21px;
    font-weight: bold;
}

.navigation {
    display: flex;
    gap: 15px;
    align-items: center;
}

.navigation a {
    color: #fff;
    font-weight: bold;
}

.stats-bar {
    display: flex;
    gap: 25px;
    padding: 7px 12px;
    background: #eee;
    border-bottom: 1px solid #ccc;
}

.stats-bar span {
    color: #666;
}

.stats-bar strong {
    color: #222;
}

.style-bar {
    padding: 6px 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.style-bar form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.style-bar select {
    padding: 4px;
}

.breadcrumb {
    padding: 8px 12px;
    background: #eee;
    border-bottom: 1px solid #ccc;
}

.content {
    padding: 12px;
    min-height: 450px;
}

.forum-category {
    border: 1px solid #bbb;
    margin-bottom: 15px;
}

.category-header {
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
}

.forum-row {
    min-height: 75px;
    display: flex;
    align-items: center;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.forum-icon {
    width: 65px;
    text-align: center;
    font-size: 25px;
}

.forum-info {
    flex: 1;
}

.forum-info a {
    font-size: 15px;
    font-weight: bold;
}

.forum-description {
    color: #777;
    margin-top: 5px;
}

.forum-stats {
    width: 110px;
    text-align: center;
    color: #777;
}

.vb-panel {
    border: 1px solid #bbb;
    background: #fafafa;
}

.vb-title {
    padding: 9px 12px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
}

.form-row {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    max-width: 700px;
    padding: 8px;
    border: 1px solid #aaa;
    background: #fff;
    font-family: Tahoma, Arial, sans-serif;
}

.vb-button {
    display: inline-block;
    margin: 0;
    padding: 7px 18px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
    border: 1px solid #304d69;
    cursor: pointer;
    text-decoration: none;
}

.vb-button:hover {
    text-decoration: none;
    opacity: .95;
}

.error-box {
    margin: 10px;
    padding: 10px;
    color: #900;
    background: #ffeaea;
    border: 1px solid #d99;
}

.footer {
    padding: 15px;
    text-align: center;
    line-height: 1.8;
    color: #666;
    background: #e9e9e9;
    border-top: 1px solid #ccc;
}

/* صفحة القسم */
.forum-panel {
    overflow: hidden;
}

.forum-description-box {
    padding: 10px 12px;
    color: #666;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.forum-new-thread {
    padding: 10px 12px;
    text-align: left;
    background: #f3f3f3;
    border-bottom: 1px solid #ddd;
}

.forum-online {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    color: #666;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
}

.forum-online strong {
    color: #333;
}

.forum-online-users {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-online-users a {
    font-weight: bold;
}

.thread-list {
    width: 100%;
    border: 1px solid #bbb;
    background: #fff;
}

.thread-list-head {
    display: grid;
    grid-template-columns: 1fr 110px 110px;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
}

.thread-list-head span {
    text-align: center;
}

.thread-list-head span:first-child {
    text-align: right;
}

.thread-row {
    display: grid;
    grid-template-columns: 55px minmax(0,1fr) 110px 110px;
    align-items: stretch;
    min-height: 74px;
    background: #fafafa;
    border-top: 1px solid #ddd;
}

.thread-row:hover {
    background: #f7f9fb;
}

.thread-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    font-size: 24px;
}

.thread-info {
    min-width: 0;
    padding: 12px 10px;
}

.thread-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.thread-title {
    color: #1d334d;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
}

.thread-title:hover {
    color: var(--hayef-link);
}

.thread-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.sticky-label {
    color: #fff;
    background: #3e6f95;
}

.closed-label {
    color: #fff;
    background: #888;
}

.thread-meta {
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}

.thread-meta a {
    font-weight: bold;
}

.thread-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    color: #555;
    text-align: center;
    border-right: 1px solid #e1e1e1;
}

.thread-number strong {
    color: #333;
    font-size: 15px;
}

.empty-box {
    padding: 20px;
    color: #777;
    text-align: center;
    background: #fafafa;
}

.forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 0 0;
    direction: rtl;
}

.forum-pagination a,
.forum-pagination strong {
    min-width: 31px;
    padding: 6px 9px;
    text-align: center;
    border: 1px solid #bbb;
    background: #f7f7f7;
    color: #35536e;
}

.forum-pagination a:hover {
    background: #eee;
    text-decoration: none;
}

.forum-pagination strong {
    color: #fff;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
    border-color: #304d69;
}

.new-thread-box {
    padding-top: 10px;
}

.vb-copyright {
    padding: 15px 12px;
    margin-top: 12px;
    color: #777;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #ccc;
}

/* صفحة الموضوع */
.thread-panel {
    overflow: hidden;
}

.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
}

.thread-header-title {
    min-width: 0;
}

.thread-prefix {
    margin-left: 6px;
    color: rgba(255,255,255,.78);
}

.posts-container {
    background: #f5f5f5;
}

.legacy-post {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    border-top: 1px solid #ccc;
    background: #fff;
}

.post-user {
    padding: 15px 12px;
    text-align: center;
    background: #f1f3f5;
    border-left: 1px solid #d7d7d7;
}

.post-username a {
    color: #1d334d;
    font-size: 15px;
    font-weight: bold;
}

.post-rank {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
}

.post-avatar {
    width: 100px;
    height: 100px;
    margin: 12px auto;
    overflow: hidden;
    border: 1px solid #bbb;
    background: #fff;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 38px;
}

.post-user-info {
    color: #777;
    font-size: 11px;
    line-height: 1.8;
}

.post-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    color: #777;
    font-size: 11px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.post-body {
    min-height: 140px;
    padding: 16px;
    color: #222;
    line-height: 1.9;
    white-space: normal;
    overflow-wrap: anywhere;
}

.edited-note {
    padding: 7px 16px;
    color: #888;
    font-size: 11px;
    border-top: 1px solid #eee;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 9px 16px;
    margin-top: auto;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.post-actions a {
    font-size: 12px;
    font-weight: bold;
}

.reply-box {
    padding-top: 10px;
    text-align: left;
}

.guest-message {
    margin-top: 10px;
    padding: 10px;
    color: #777;
    background: #f7f7f7;
    border: 1px solid #ddd;
    text-align: center;
}

@media(max-width:650px) {

    .page {
        width: 100%;
        margin: 0;
        border-left: 0;
        border-right: 0;
    }

    .top-bar {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .content {
        padding: 7px;
    }

    .thread-list-head {
        grid-template-columns: 1fr 75px 75px;
        padding: 0 7px;
    }

    .thread-row {
        grid-template-columns: 42px minmax(0,1fr) 75px 75px;
    }

    .thread-icon {
        width: 42px;
        font-size: 20px;
    }

    .thread-info {
        padding: 10px 6px;
    }

    .thread-title {
        font-size: 14px;
    }

    .thread-number {
        min-height: 74px;
    }

    .forum-online {
        line-height: 1.8;
    }

    .legacy-post {
        grid-template-columns: 1fr;
    }

    .post-user {
        display: grid;
        grid-template-columns: 85px minmax(0,1fr);
        gap: 8px;
        align-items: center;
        text-align: right;
        padding: 10px;
        border-left: 0;
        border-bottom: 1px solid #d7d7d7;
    }

    .post-avatar {
        grid-row: span 2;
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .post-user-info {
        line-height: 1.6;
    }

    .post-header {
        padding: 7px 10px;
    }

    .post-body {
        min-height: 120px;
        padding: 13px;
    }

    .thread-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.post-quote {
    margin: 0 0 15px 0;
    border: 1px solid #c9d5df;
    background: #f5f8fa;
}

.post-quote-title {
    padding: 7px 10px;
    color: #516273;
    font-size: 11px;
    font-weight: bold;
    background: #e8eef3;
    border-bottom: 1px solid #c9d5df;
}

.post-quote-content {
    padding: 10px;
    color: #555;
    line-height: 1.9;
}

.delete-post-link {
    color: #a00000 !important;
}

.delete-confirm-box {
    padding: 18px;
    background: #fafafa;
}

.delete-confirm-title {
    margin-bottom: 12px;
    color: #900;
    font-weight: bold;
}

.delete-confirm-content {
    max-height: 240px;
    overflow: auto;
    margin-bottom: 15px;
    padding: 12px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    line-height: 1.9;
}

.delete-button,
.cancel-button {
    display: inline-block;
    padding: 7px 16px;
    font-weight: bold;
    text-decoration: none;
}

.delete-button {
    color: #fff;
    background: #a00000;
    border: 1px solid #780000;
    cursor: pointer;
}

.cancel-button {
    margin-right: 6px;
    color: #555;
    background: #eee;
    border: 1px solid #bbb;
}

@media(max-width:650px) {

    .post-quote-content {
        padding: 8px;
    }

    .delete-confirm-box {
        padding: 12px;
    }

}

.post-avatar {
    width: 200px;
    height: 300px;
    margin: 8px auto;
    overflow: hidden;
}

.post-avatar img {
    display: block;
    width: 200px;
    height: 300px;
    object-fit: cover;
}

.post-avatar .default-avatar {
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-panel {
    width: 100%;
}

.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
    border-bottom: 1px solid #304d69;
}

.thread-header-title {
    flex: 1;
    min-width: 0;
}

.thread-prefix {
    margin-left: 6px;
    opacity: .8;
}

.posts-container {
    width: 100%;
}

.legacy-post {
    display: grid;
    grid-template-columns: 220px minmax(0,1fr);
    width: 100%;
    border-top: 1px solid #ccc;
    background: #fff;
}

.post-user {
    width: 220px;
    padding: 14px 10px;
    text-align: center;
    background: #f2f2f2;
    border-left: 1px solid #ccc;
}

.post-username a {
    font-size: 15px;
    font-weight: bold;
}

.post-rank {
    margin-top: 4px;
    color: #777;
    font-size: 12px;
    font-weight: bold;
}

.post-avatar {
    width: 200px;
    height: 300px;
    margin: 12px auto;
    overflow: hidden;
    background: #e9e9e9;
    border: 1px solid #ccc;
}

.post-avatar img {
    display: block;
    width: 200px;
    height: 300px;
    object-fit: cover;
}

.post-avatar .default-avatar {
    width: 200px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.post-user-info {
    color: #777;
    font-size: 11px;
    line-height: 1.9;
}

.post-content {
    min-width: 0;
    background: #fff;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    color: #666;
    background: #eee;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
}

.post-body {
    min-height: 180px;
    padding: 18px;
    color: #333;
    line-height: 2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.post-actions {
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.post-actions a {
    margin-left: 12px;
    font-size: 12px;
    font-weight: bold;
}

.thread-online,
.thread-related {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #ccc;
    background: #eee;
}

.thread-online {
    padding: 10px 12px;
    color: #666;
    font-size: 12px;
    line-height: 1.8;
}

.thread-online-title {
    display: inline-block;
    margin-left: 8px;
    color: #333;
    font-weight: bold;
}

.thread-online a {
    display: inline-block;
    margin-left: 8px;
    color: var(--hayef-link);
    font-weight: bold;
}

.thread-online-empty {
    color: #888;
}

.thread-related-title {
    padding: 8px 12px;
    color: #fff;
    font-weight: bold;
    background:
        linear-gradient(
            var(--hayef-header),
            var(--hayef-header-dark)
        );
    border-bottom: 1px solid #ccc;
}

.thread-related-row {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 85px 85px;
    align-items: center;
    min-height: 64px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

.thread-related-icon {
    text-align: center;
    font-size: 20px;
}

.thread-related-info {
    min-width: 0;
    padding: 9px 6px;
}

.thread-related-info > a {
    font-size: 14px;
    font-weight: bold;
}

.thread-related-info > div {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
}

.thread-related-number {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    border-right: 1px solid #ddd;
    text-align: center;
}

.thread-related-number strong {
    color: #222;
    font-size: 14px;
}

.thread-related-number span {
    margin-top: 2px;
    font-size: 10px;
}

.thread-related-empty {
    padding: 10px 12px;
    color: #777;
    font-size: 12px;
    background: #fafafa;
}

@media(max-width:650px) {

    .legacy-post {
        grid-template-columns: 1fr;
    }

    .post-user {
        width: 100%;
        padding: 10px;
        border-left: 0;
        border-bottom: 1px solid #ccc;
    }

    .post-avatar {
        width: 120px;
        height: 170px;
    }

    .post-avatar img {
        width: 120px;
        height: 170px;
    }

    .post-avatar .default-avatar {
        width: 120px;
        height: 170px;
    }

    .thread-related-row {
        grid-template-columns: 40px minmax(0,1fr) 65px 65px;
    }

}

/* =========================================================
   HaYeF Kuwait - Animated Visual Upgrade
   إضافات بصرية فقط، بدون تغيير وظائف المنتدى
   ========================================================= */

:root {
    --hayef-glow: rgba(64, 139, 255, .35);
    --hayef-glow-soft: rgba(64, 139, 255, .14);
    --hayef-surface: rgba(255,255,255,.76);
}

body {
    background:
        radial-gradient(circle at 15% 10%, var(--hayef-glow-soft), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.10), transparent 26%),
        linear-gradient(135deg, var(--hayef-bg), var(--hayef-bg));
    background-attachment: fixed;
}

.page {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 30px rgba(0,0,0,.12),
        0 0 0 1px rgba(255,255,255,.35) inset,
        0 0 28px var(--hayef-glow-soft);
    animation: hayefPageIn .55s ease both;
}

.top-bar,
.category-header,
.vb-title,
.thread-list-head,
.thread-header,
.thread-related-title,
.vb-button,
.forum-pagination strong {
    background-size: 220% 220%;
    animation: hayefGradient 8s ease infinite;
}

.top-bar {
    position: relative;
    box-shadow: 0 4px 18px var(--hayef-glow-soft);
}

.top-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -35%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-20deg);
    animation: hayefShine 5s linear infinite;
    pointer-events: none;
}

.logo {
    position: relative;
    text-shadow: 0 0 12px rgba(255,255,255,.28);
}

.logo::before {
    content: "✦";
    display: inline-block;
    margin-left: 8px;
    animation: hayefSpark 2.8s ease-in-out infinite;
}

.navigation a {
    position: relative;
    padding: 5px 7px;
    border-radius: 5px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.navigation a::before {
    margin-left: 5px;
}

.navigation a:nth-child(1)::before { content: "⌂"; }
.navigation a:nth-child(2)::before { content: "♟"; }
.navigation a:nth-child(3)::before { content: "●"; }
.navigation a:nth-child(4)::before { content: "↪"; }
.navigation a:nth-child(5)::before { content: "⚙"; }

.navigation a:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.11);
    box-shadow: 0 0 12px rgba(255,255,255,.10);
}

.stats-bar,
.style-bar,
.breadcrumb,
.forum-description-box,
.forum-online,
.footer {
    transition: background .3s ease, border-color .3s ease;
}

.stats-bar strong {
    text-shadow: 0 0 8px var(--hayef-glow-soft);
}

.style-bar select {
    border: 1px solid color-mix(in srgb, var(--hayef-header) 35%, #bbb);
    border-radius: 5px;
    background: var(--hayef-panel);
    color: var(--hayef-text);
    transition: box-shadow .2s ease, transform .2s ease;
}

.style-bar select:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px var(--hayef-glow-soft);
}

.forum-category,
.vb-panel,
.thread-list,
.thread-online,
.thread-related {
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.category-header,
.vb-title,
.thread-list-head,
.thread-header,
.thread-related-title {
    position: relative;
    overflow: hidden;
}

.category-header::after,
.vb-title::after,
.thread-list-head::after,
.thread-header::after,
.thread-related-title::after {
    content: "";
    position: absolute;
    top: 0;
    right: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    animation: hayefShine 6s linear infinite;
    pointer-events: none;
}

.forum-row,
.thread-row,
.legacy-post,
.thread-related-row {
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.forum-row:hover,
.thread-row:hover,
.thread-related-row:hover {
    transform: translateX(-2px);
    box-shadow: inset 4px 0 0 var(--hayef-link), 0 6px 14px rgba(0,0,0,.05);
}

.forum-icon,
.thread-icon,
.thread-related-icon {
    position: relative;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.12));
    animation: hayefIconFloat 3s ease-in-out infinite;
}

.forum-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hayef-link);
    opacity: .65;
    animation: hayefPulse 2s ease-in-out infinite;
}

.thread-icon::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--hayef-glow);
    border-radius: 50%;
    animation: hayefRing 2.8s linear infinite;
}

.thread-info a,
.forum-info a,
.thread-related-info > a {
    transition: color .2s ease, text-shadow .2s ease;
}

.thread-info a:hover,
.forum-info a:hover,
.thread-related-info > a:hover {
    text-shadow: 0 0 10px var(--hayef-glow-soft);
    text-decoration: none;
}

.thread-label,
.sticky-label,
.closed-label {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.vb-button {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 12px var(--hayef-glow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.vb-button::before {
    content: "➜";
    display: inline-block;
    margin-left: 6px;
    transition: transform .2s ease;
}

.vb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px var(--hayef-glow);
}

.vb-button:hover::before {
    transform: translateX(-3px);
}

.empty-box {
    position: relative;
}

.empty-box::before {
    content: "✦";
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    opacity: .55;
    animation: hayefSpark 2.8s ease-in-out infinite;
}

.forum-online-title,
.thread-online-title {
    position: relative;
}

.forum-online strong::before,
.thread-online-title::before {
    content: "●";
    margin-left: 5px;
    color: #3abf67;
    font-size: 11px;
    animation: hayefOnline 1.8s ease-in-out infinite;
}

.post-avatar {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(0,0,0,.10);
    transition: transform .3s ease, box-shadow .3s ease;
}

.post-avatar:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.post-username a::before {
    content: "◆";
    margin-left: 5px;
    font-size: 8px;
    opacity: .65;
}

.post-actions a {
    position: relative;
    padding: 3px 5px;
    border-radius: 4px;
    transition: background .2s ease, transform .2s ease;
}

.post-actions a:hover {
    background: var(--hayef-glow-soft);
    transform: translateY(-1px);
    text-decoration: none;
}

.post-actions a[href*="reply"]::before { content: "↩"; margin-left: 4px; }
.post-actions a[href*="quote"]::before { content: "❞"; margin-left: 4px; }
.post-actions a[href*="edit"]::before { content: "✎"; margin-left: 4px; }
.post-actions a[href*="delete"]::before { content: "✕"; margin-left: 4px; }

.post-quote {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.post-quote::before {
    content: "❝";
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 28px;
    opacity: .14;
}

.forum-pagination a,
.forum-pagination strong {
    border-radius: 5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.forum-pagination a:hover,
.forum-pagination strong {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    text-decoration: none;
}

.vb-copyright {
    position: relative;
}

.vb-copyright::before {
    content: "✦";
    margin-left: 5px;
    opacity: .45;
}

@keyframes hayefGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes hayefShine {
    0% { right: -35%; }
    55%, 100% { right: 130%; }
}

@keyframes hayefSpark {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: .75; }
    50% { transform: scale(1.25) rotate(12deg); opacity: 1; }
}

@keyframes hayefPulse {
    0%, 100% { transform: scale(.75); opacity: .25; }
    50% { transform: scale(1.35); opacity: .75; }
}

@keyframes hayefRing {
    0% { transform: scale(.75); opacity: .65; }
    70%, 100% { transform: scale(1.45); opacity: 0; }
}

@keyframes hayefIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes hayefOnline {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

@keyframes hayefPageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
