@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
:root {
    --bg-body: #16161a;
    --bg-box: #1e1e24;
    --bg-box-alt: #1a1a20;
    --bg-input: #24242b;
    --bg-header: #101014;
    --bg-section: #1a1a20;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --accent: #d6829e;
    --accent-light: #e4a0b8;
    --accent-dark: #b5637f;
    --accent-bg: rgba(214,130,158,0.08);
    --text: #e8e8ec;
    --text-light: #a0a4af;
    --text-muted: #6b7394;
    --white: #f5f5f7;
    --role-admin: #f84848;
    --role-staff: #f84862;
    --role-customer: #487ef8;
    --role-reseller: #48f886;
    --role-default: #5b668d;
    --radius: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --container: 1200px;
    --transition: 0.2s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
/* ========== CONTAINER ========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
/* ========== HEADER ========== */
#ipsLayout_header { background: var(--bg-header); border-bottom: 1px solid var(--border); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
#ipsLayout_header header { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; }
.popp--logo a { display: flex; align-items: center; gap: 10px; }
.popp--logo img { height: 32px; }
.popp--logo .text-logo { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: 0.5px; }
.popp--logo .text-logo .pub { color: var(--accent); }
.popp--menu ul { display: flex; gap: 2px; }
.popp--menu ul li a {
    display: block; padding: 8px 16px; color: var(--text-light); font-size: 0.875rem; font-weight: 500;
    border-radius: var(--radius); transition: all var(--transition);
}
.popp--menu ul li a:hover, .popp--menu ul li.active a { color: var(--white); background: rgba(255,255,255,0.05); }
.popp--userbar { display: flex; align-items: center; gap: 14px; }
.popp--userbar a { color: var(--text-light); font-size: 0.85rem; font-weight: 500; transition: all 0.25s ease; }
.popp--userbar a:hover { color: var(--white); }
.popp--userbar .btn-login {
    padding: 7px 20px; background: var(--accent); color: #fff !important; border-radius: 20px;
    font-weight: 700; font-size: 0.8rem; letter-spacing: 0.3px;
    transition: background 0.2s ease;
}
.popp--userbar .btn-login:hover { background: var(--accent-light); }
.popp--userbar .btn-register { color: var(--accent) !important; font-weight: 600; }
.popp--userbar .btn-register:hover { color: var(--accent-light) !important; }
.popp--userbar i { font-size: 1rem; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .popp--menu { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: var(--bg-header); border-bottom: 1px solid var(--border); padding: 10px 20px; z-index: 999; }
    .popp--menu.open { display: block; }
    .popp--menu ul { flex-direction: column; }
    .popp--userbar .btn-login { display: none; }
}
/* ========== P-BODY (main content wrapper) ========== */
.p-body { padding-top: 80px; min-height: calc(100vh - 100px); }
/* ========== BREADCRUMB ========== */
.ipsBreadcrumb { padding: 12px 0; font-size: 0.8rem; color: var(--text-muted); }
.ipsBreadcrumb a { color: var(--text-light); }
.ipsBreadcrumb a:hover { color: var(--accent); }
.ipsBreadcrumb span.sep { margin: 0 6px; color: var(--text-muted); }
.breadcrumb { padding: 16px 0 8px; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }
/* ========== PAGE TITLE ========== */
.ipsPageHeader { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 20px; }
.ipsPageHeader h1 { font-size: 1.5rem; font-weight: 600; color: var(--white); }
.ipsButton_important {
    padding: 8px 20px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
    font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.ipsButton_important:hover { background: var(--accent-light); }
.p-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 20px; }
.p-title h1 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); }
.p-title h1 i { margin-right: 8px; color: var(--accent); }
/* ========== GLOBAL INPUT ========== */
.input {
    display: block; width: 100%; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-md); color: var(--text); font-family: 'Nunito', sans-serif; font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,130,158,0.12); }
.input::placeholder { color: var(--text-muted); }
select.input {
    cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7394' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
/* ========== CUSTOM CHECKBOX ========== */
.custom-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.88rem; color: var(--text-light); user-select: none; }
.custom-checkbox input[type="checkbox"] { display: none; }
.custom-checkbox .checkmark {
    width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px;
    background: var(--bg-input); display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; flex-shrink: 0;
}
.custom-checkbox input:checked + .checkmark { background: var(--accent); border-color: var(--accent); }
.custom-checkbox input:checked + .checkmark::after {
    content: ''; display: block; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -1px;
}
.custom-checkbox:hover .checkmark { border-color: var(--accent); }
/* ========== CUSTOM FILE INPUT ========== */
.custom-file { position: relative; display: flex; align-items: center; gap: 12px; }
.custom-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.custom-file-btn {
    padding: 9px 18px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-light); font-size: 0.84rem; font-weight: 600; white-space: nowrap;
    transition: all 0.25s ease; cursor: pointer;
}
.custom-file:hover .custom-file-btn { border-color: var(--accent); color: var(--accent); }
.custom-file-name { font-size: 0.84rem; color: var(--text-muted); }
/* ========== UTILITY ========== */
.text-muted { color: var(--text-muted); }
/* ========== FORUM CATEGORY LIST (PHP dynamic) ========== */
.forum-category-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cForumRow {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px;
    background: var(--bg-box); transition: all 0.3s ease;
}
.cForumRow:hover { background: rgba(255,255,255,0.025); }
.cForumRow__icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-size: 1.1rem; background: var(--accent-bg); border-radius: var(--radius); }
.cForumRow__info { flex: 1; min-width: 0; }
.cForumRow__info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.cForumRow__info h3 a { color: var(--white); }
.cForumRow__info h3 a:hover { color: var(--accent); }
.cForumRow__desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.cForumRow__badge { display: inline-block; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.cForumRow__badge i { margin-right: 3px; font-size: 0.65rem; }
.cForumRow .popp--forums-stats { min-width: 120px; text-align: right; font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.cForumRow .popp--forums-stats span { color: var(--text-light); font-weight: 600; }
.cForumRow__lastPost { min-width: 180px; text-align: right; }
.cForumRow__lastPost-title { display: block; font-size: 0.8rem; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cForumRow__lastPost-title:hover { color: var(--accent); }
.cForumRow__lastPost-meta { font-size: 0.75rem; color: var(--text-muted); }
.cForumRow__lastPost-meta .time { margin-left: 6px; }
/* ========== FORUM CATEGORIES (IPS STYLE) ========== */
.cForumList { display: flex; flex-direction: column; gap: 16px; padding-bottom: 30px; }
.cForumRow.ipsBox {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.ipsType_sectionTitle {
    padding: 14px 20px; font-size: 0.9rem; font-weight: 600; color: var(--white);
    background: var(--bg-box-alt); border-bottom: 1px solid var(--border);
}
.ipsType_sectionTitle a { color: var(--white); }
.ipsType_sectionTitle a:hover { color: var(--accent); }
.ipsDataList { }
.ipsDataItem {
    display: grid; grid-template-columns: 44px 1fr 60px 220px; gap: 16px; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.ipsDataItem:last-child { border-bottom: none; }
.ipsDataItem:hover { background: rgba(255,255,255,0.015); }
.ipsDataItem_icon img, .ipsDataItem_icon .forum-icon-placeholder {
    width: 38px; height: 38px; object-fit: contain; border-radius: var(--radius);
}
.ipsDataItem_icon .forum-icon-placeholder {
    background: rgba(196,139,159,0.1); display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1rem;
}
.ipsDataItem_main h4 { font-size: 0.9rem; font-weight: 500; margin-bottom: 3px; }
.ipsDataItem_main h4 a { color: var(--text); }
.ipsDataItem_main h4 a:hover { color: var(--accent); }
.ipsDataItem_main .ipsDataItem_meta { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.ipsDataItem_main .ipsDataItem_meta p { margin: 0; }
.popp--forums-stats { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--text-light); }
.popp--forums-stats i { font-size: 0.7rem; color: var(--text-muted); }
.ipsDataItem_lastPoster { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ipsDataItem_lastPoster img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.ipsDataItem_lastPoster .lp-info { min-width: 0; }
.ipsDataItem_lastPoster .lp-title { display: block; font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipsDataItem_lastPoster .lp-title:hover { color: var(--accent); }
.ipsDataItem_lastPoster .lp-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
/* Role colors with glow - matching reference */
.role-admin { color: var(--role-admin) !important; font-weight: bold; text-shadow: 0 0 .5em var(--role-admin); }
.role-staff { color: var(--role-staff) !important; font-weight: bold; text-shadow: 0 0 .5em var(--role-staff); }
.role-customer { color: var(--role-customer) !important; font-weight: bold; text-shadow: 0 0 .5em var(--role-customer); }
.role-reseller { color: var(--role-reseller) !important; font-weight: bold; text-shadow: 0 0 .5em var(--role-reseller); }
.role-member { color: var(--role-default); }
.role-default { color: var(--role-default); }
@media (max-width: 768px) {
    .ipsDataItem { grid-template-columns: 38px 1fr; }
    .popp--forums-stats, .ipsDataItem_lastPoster { display: none; }
}
/* ========== MEMBERS ONLINE WIDGET ========== */
.ipsWidget {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-top: 16px;
}
.ipsWidget_title { padding: 14px 20px; font-size: 0.88rem; font-weight: 600; color: var(--white); background: var(--bg-box-alt); border-bottom: 1px solid var(--border); }
.ipsWidget_inner { padding: 16px 20px; }
.ipsWidget_inner .online-users { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 0.8rem; }
.ipsWidget_inner .online-users a { color: var(--text-light); }
.ipsWidget_inner .online-users a:hover { color: var(--white); }
.ipsWidget_inner .stat-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.82rem; color: var(--text-light); }
.ipsWidget_inner .stat-line strong { color: var(--text); }
/* ========== LOGIN PAGE (XenForo style) ========== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
    width: 100%; max-width: 420px; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 32px;
}
.auth-card h2 { font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-light); margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text); font-size: 0.88rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border var(--transition);
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
/* .form-row moved to global forms section below */
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-light); font-size: 0.82rem; }
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); }
/* buttons moved to global buttons section below */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-muted); font-size: 0.78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 500; }
/* ========== STORE PAGE ========== */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.store-card {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: border-color 0.25s ease, transform 0.25s ease;
}
.store-card:hover { border-color: var(--accent); }
.store-card__link { display: block; text-decoration: none; color: inherit; }
.store-card__image {
    height: 160px; background: var(--bg-box-alt); display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.store-card__image i { font-size: 2.5rem; color: var(--text-muted); transition: color 0.25s ease; }
.store-card:hover .store-card__image i { color: var(--accent); }
.store-card__image img { width: 100%; height: 100%; object-fit: cover; }
.store-card__body { padding: 16px; }
.store-card__name { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.store-card__desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.store-card__footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.store-price { color: var(--text-light); }
.store-price strong { color: var(--accent); font-weight: 700; }
.store-card__arrow { color: var(--text-muted); transition: color 0.2s, transform 0.2s; }
.store-card:hover .store-card__arrow { color: var(--accent); transform: translateX(3px); }
.store-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 10px; border-radius: 3px; }
.store-badge--coming { color: #f8c648; background: rgba(248,198,72,0.1); }
.store-login-notice {
    margin-top: 24px; padding: 16px 20px; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); font-size: 0.86rem; color: var(--text-muted); text-align: center;
}
.store-login-notice i { margin-right: 6px; color: var(--accent); }
/* ========== PRODUCT DETAIL ========== */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.product-gallery__main {
    width: 100%; aspect-ratio: 16/10; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.product-thumb {
    width: 64px; height: 48px; border-radius: var(--radius); overflow: hidden;
    border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
}
.product-thumb.active, .product-thumb:hover { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__placeholder {
    width: 100%; aspect-ratio: 16/10; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
}
.product-gallery__placeholder i { font-size: 4rem; color: var(--text-muted); }
.product-info__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-info__header h1 { font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--white); }
.product-info__short { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 24px; }
.product-pricing h3, .product-payment h3 { font-size: 0.88rem; font-weight: 700; color: var(--text-light); margin-bottom: 10px; }
.pricing-options { display: flex; gap: 10px; margin-bottom: 20px; }
.pricing-option {
    flex: 1; cursor: pointer; display: block;
}
.pricing-option input { display: none; }
.pricing-option__inner {
    padding: 16px 14px; background: var(--bg-box); border: 2px solid var(--border);
    border-radius: var(--radius-lg); text-align: center; transition: all 0.25s ease;
}
.pricing-option.selected .pricing-option__inner { border-color: var(--accent); background: rgba(214,130,158,0.06); }
.pricing-option:hover .pricing-option__inner { border-color: var(--accent-dark); }
.pricing-option__period { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.pricing-option__price { display: block; font-size: 1.3rem; font-weight: 800; color: var(--white); font-family: 'Montserrat', sans-serif; }
.pricing-option.selected .pricing-option__price { color: var(--accent); }
.payment-methods { display: flex; gap: 10px; margin-bottom: 20px; }
.payment-method {
    flex: 1; cursor: pointer; display: block;
}
.payment-method input { display: none; }
.payment-method {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; background: var(--bg-box); border: 2px solid var(--border);
    border-radius: var(--radius-lg); font-size: 0.88rem; color: var(--text-light);
    transition: all 0.25s ease; font-weight: 600;
}
.payment-method.selected { border-color: var(--accent); color: var(--accent); background: rgba(214,130,158,0.06); }
.payment-method:hover { border-color: var(--accent-dark); }
.payment-method i { font-size: 1.1rem; }
.btn-purchase {
    width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none;
    border-radius: var(--radius-lg); font-family: 'Nunito', sans-serif; font-size: 1rem;
    font-weight: 800; cursor: pointer; transition: background 0.2s; display: flex;
    align-items: center; justify-content: center; gap: 10px;
}
.btn-purchase:hover { background: var(--accent-light); }
.product-no-pricing { padding: 20px; background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-muted); text-align: center; }
.product-description {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 30px;
}
.product-description h2 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.product-description__content { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.store-login-wall {
    text-align: center; padding: 60px 20px; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); margin-top: 20px;
}
.store-login-wall i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.store-login-wall h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.store-login-wall p { color: var(--text-muted); font-size: 0.9rem; }
/* ========== MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; max-width: 420px; width: 100%; text-align: center;
    animation: slideUp 0.3s ease;
}
.modal-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; }
.modal-box h2 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.modal-box p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .product-page { grid-template-columns: 1fr; }
    .pricing-options { flex-direction: column; }
    .store-grid { grid-template-columns: 1fr; }
}
/* ========== LANDING PAGE ========== */
/* --- Intro overlay --- */
.p-intro {
    position: fixed; inset: 0; background: #16161a; display: flex; align-items: center; justify-content: center;
    z-index: 10000; transition: opacity 0.8s ease, visibility 0.8s ease;
}
.p-intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.p-intro-inner {
    display: flex; align-items: center; gap: 0; opacity: 0; transition: opacity 0.5s ease;
}
.p-intro-inner.show { opacity: 1; }
.p-intro-inner .intro-logo-img {
    width: 52px; height: 52px; border-radius: 10px; position: relative; z-index: 2;
    transition: transform 1s cubic-bezier(.4,0,.2,1);
}
.p-intro-inner.slide .intro-logo-img { transform: translateX(-16px); }
.p-intro-inner .intro-text {
    font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--white);
    display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap;
    transition: max-width 1.2s cubic-bezier(.4,0,.2,1);
}
.p-intro-inner .intro-text .pub { color: var(--accent); }
.p-intro-inner.slide .intro-text { max-width: 400px; }
/* --- Landing header --- */
.landing-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--bg-header);
}
.landing-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, #d6829e, #c07ab8, #a77bd6, #c07ab8, #d6829e);
    background-size: 300% 100%;
    animation: rgbSlide 6s linear infinite;
    opacity: 0.7;
}
.landing-header .header-inner {
    max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 56px;
}
.landing-header .logo-link { display: flex; align-items: center; gap: 10px; }
.landing-header .logo-link img { height: 28px; border-radius: 6px; }
.landing-header .logo-link .text-logo { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); }
.landing-header .logo-link .text-logo .pub { color: var(--accent); }
.landing-header nav ul { display: flex; gap: 2px; }
.landing-header nav ul li a {
    padding: 8px 16px; color: var(--text-light); font-size: 0.85rem; font-weight: 500;
    border-radius: var(--radius); transition: color var(--transition);
}
.landing-header nav ul li a:hover { color: var(--white); }
/* --- Particles container --- */
#particles-js {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
/* --- Notice bar (like bankroll - simple, in content) --- */
.notice-bar {
    text-align: center; padding: 10px 20px; font-size: 0.82rem; color: var(--text-light); font-weight: 500;
    background: var(--bg-box); border-bottom: 1px solid var(--border); margin-top: 58px;
}
.notice-bar a { color: var(--accent); font-weight: 700; }
@keyframes rgbSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
/* --- Hero section --- */
.hero-section { position: relative; overflow: hidden; background: var(--bg-body); }
.init {
    min-height: 100vh; display: flex; align-items: center; padding: 80px 20px 80px;
    max-width: var(--container); margin: 0 auto; gap: 60px; position: relative; z-index: 1;
}
.init_left { flex: 1; }
.init_left h1 {
    font-family: 'Montserrat', sans-serif; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800;
    color: var(--white); line-height: 1.12; margin-bottom: 20px;
}
.init_left .hero-desc {
    font-size: 0.95rem; color: var(--text-light); margin-bottom: 32px; max-width: 480px; line-height: 1.75;
}
.init_left .hero-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.init_left .hero-stats {
    display: flex; gap: 44px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
}
.init_left .hero-stats .stat-item .stat-num {
    font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white);
}
.init_left .hero-stats .stat-item .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.init_right { flex: 1; display: flex; justify-content: center; align-items: center; }
.init_right img { max-width: 280px; border-radius: 16px; }
/* --- Buttons --- */
.shadow__btn {
    display: inline-block; padding: 12px 32px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
    font-family: 'Nunito', sans-serif; font-size: 0.86rem; font-weight: 700; cursor: pointer; transition: background var(--transition);
}
.shadow__btn:hover { background: var(--accent-light); }
.shadow__btn2 {
    display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
    font-family: 'Nunito', sans-serif; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: background var(--transition);
}
.shadow__btn2:hover { background: var(--accent-light); }
.shadow__btn3 {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    background: var(--bg-box); color: var(--text-light); border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: color var(--transition), border-color var(--transition); font-size: 1rem;
}
.shadow__btn3:hover { border-color: var(--accent); color: var(--accent); }
/* --- Features "middle" section --- */
.middle { padding: 80px 20px; max-width: var(--container); margin: 0 auto; }
.middle_right_t {
    font-family: 'Montserrat', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white);
    text-align: center; margin-bottom: 48px;
}
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.serviceBox {
    background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color var(--transition);
}
.serviceBox:hover { border-color: rgba(255,255,255,0.12); }
.serviceBox i { font-size: 1.2rem; color: var(--accent); margin-bottom: 14px; display: block; }
.serviceBox .title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.serviceBox .description { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; }
/* --- Product showcase "bottom" section --- */
.bottom { padding: 60px 20px 80px; max-width: var(--container); margin: 0 auto; }
.bottom_container { display: flex; gap: 40px; align-items: center; }
.left_bottom { flex: 1; }
.left_bottom img { width: 100%; border-radius: var(--radius-lg); }
.left_bottom .showcase-placeholder {
    width: 100%; aspect-ratio: 16/10; background: var(--bg-box); border: 1px solid var(--border);
    border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
}
.left_bottom .showcase-placeholder i { font-size: 2rem; color: var(--text-muted); }
.center_bottom { width: 0; }
.right_bottom { flex: 1; }
.btitle { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.bdescription { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 20px; }
.right_b { display: flex; gap: 10px; }
.space { height: 30px; }
@media (max-width: 768px) {
    .init { flex-direction: column; text-align: center; padding-top: 80px; min-height: auto; }
    .init_left h1 { font-size: 2rem; }
    .init_left .hero-desc { margin-left: auto; margin-right: auto; }
    .init_left .hero-buttons { justify-content: center; }
    .init_left .hero-stats { justify-content: center; }
    .init_right { display: none; }
    .bottom_container { flex-direction: column; }
    .hide-on-mobile { display: none; }
    .landing-header nav { display: none; }
    .notice-bar { font-size: 0.72rem; padding: 7px 15px; }
}
/* ========== FOOTER (simple, like reference) ========== */
.site-footer {
    border-top: 1px solid var(--border); background: var(--bg-section); padding: 32px 20px;
    text-align: center; font-size: 0.8rem; color: var(--text-muted); line-height: 1.8;
}
.site-footer a { color: var(--role-customer); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .heart { color: var(--role-admin); }
/* ========== TOPIC LIST ========== */
.topic-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.topic-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--bg-box); transition: all 0.3s ease; }
.topic-row:hover { background: rgba(255,255,255,0.025); }
.topic-row--pinned { background: var(--bg-box-alt); }
.topic-row__icon { width: 32px; text-align: center; color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.topic-row--pinned .topic-row__icon { color: var(--accent); }
.topic-row__info { flex: 1; min-width: 0; }
.topic-row__info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 3px; }
.topic-row__info h3 a { color: var(--white); }
.topic-row__info h3 a:hover { color: var(--accent); }
.topic-row__meta { font-size: 0.78rem; color: var(--text-muted); }
.topic-row__meta .time { margin-left: 8px; }
.topic-row__stats { font-size: 0.78rem; color: var(--text-muted); text-align: right; min-width: 120px; }
.topic-row__stats span { color: var(--text-light); font-weight: 600; }
.topic-row__lastPost { font-size: 0.78rem; color: var(--text-muted); text-align: right; min-width: 140px; }
.topic-row__lastPost .time { display: block; margin-top: 2px; }
/* ========== POST LIST ========== */
.post-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.post-item { display: flex; gap: 0; background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.post-item:hover { border-color: var(--border-hover); }
.post-sidebar {
    width: 180px; flex-shrink: 0; padding: 20px 16px; background: var(--bg-box-alt);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    border-right: 1px solid var(--border);
}
.post-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.post-username { font-size: 0.88rem; }
.post-role { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.post-user-stats { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 10px; }
.post-user-stats i { margin-right: 3px; }
.post-user-joined { font-size: 0.7rem; color: var(--text-muted); }
.post-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 18px; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted);
}
.post-link { color: var(--text-muted); }
.post-link:hover { color: var(--accent); }
.post-body { padding: 18px; font-size: 0.9rem; line-height: 1.7; color: var(--text); flex: 1; word-wrap: break-word; overflow-wrap: break-word; }
.post-body p { margin-bottom: 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong, .post-body b { font-weight: 700; color: var(--white); }
.post-body em, .post-body i:not(.fa-solid):not(.fa-regular):not(.fa-brands) { font-style: italic; }
.post-body ul, .post-body ol { margin: 8px 0 8px 24px; }
.post-body li { margin-bottom: 4px; }
.post-body blockquote {
    margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--accent);
    background: rgba(214,130,158,0.05); border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic; color: var(--text-light);
}
.post-body pre, .post-body code { font-family: 'Consolas', 'Monaco', monospace; font-size: 0.85em; }
.post-body code { background: var(--bg-input); padding: 2px 6px; border-radius: 3px; color: var(--accent); }
.post-body pre { background: var(--bg-input); padding: 14px; border-radius: var(--radius); overflow-x: auto; margin: 10px 0; }
.post-body pre code { background: none; padding: 0; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body a:hover { color: var(--accent-light); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { color: var(--white); margin: 14px 0 8px; font-weight: 700; }
.post-body h1 { font-size: 1.4rem; } .post-body h2 { font-size: 1.2rem; } .post-body h3 { font-size: 1.05rem; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.post-body th, .post-body td { padding: 8px 12px; border: 1px solid var(--border); font-size: 0.85rem; }
.post-body th { background: var(--bg-input); font-weight: 600; color: var(--white); }
.post-edited { padding: 0 18px 12px; font-size: 0.72rem; color: var(--text-muted); font-style: italic; }
.post-actions { padding: 8px 18px; border-top: 1px solid var(--border); }
/* ========== EDITOR CARD (WYSIWYG) ========== */
.editor-card {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-top: 20px; margin-bottom: 20px;
}
.editor-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); padding: 16px 20px; border-bottom: 1px solid var(--border); margin: 0; }
.editor-topbar { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.editor-topbar-row { display: flex; align-items: center; gap: 12px; }
.editor-topbar-row label { font-size: 0.84rem; font-weight: 600; color: var(--text-light); min-width: 70px; flex-shrink: 0; }
.input--inline { flex: 1; }
.editor-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
/* CKEditor dark theme overrides */
.cke { border-color: var(--border) !important; }
.cke_inner { background: var(--bg-box) !important; }
.cke_top { background: var(--bg-box-alt) !important; border-bottom-color: var(--border) !important; }
.cke_bottom { background: var(--bg-box-alt) !important; border-top-color: var(--border) !important; }
.cke_combo_text { color: var(--text-light) !important; }
.cke_toolgroup { border-color: var(--border) !important; background: var(--bg-box) !important; }
.cke_button { color: var(--text-light) !important; }
/* Legacy reply form */
.reply-form-wrap { background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
.reply-form-wrap h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.reply-form-wrap .btn-primary { margin-top: 10px; }
/* ========== MODERATION ========== */
.mod-actions { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
/* ========== PROFILE ========== */
.profile-header {
    display: flex; align-items: center; gap: 20px; padding: 30px; background: var(--bg-box);
    border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px;
    position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.profile-header.has-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(22,22,26,0.92) 0%, rgba(22,22,26,0.7) 50%, rgba(22,22,26,0.4) 100%);
    z-index: 0;
}
.profile-header.has-banner > * { position: relative; z-index: 1; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.profile-header-info h1 { font-size: 1.4rem; margin-bottom: 6px; }
.profile-header-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.profile-role-badge {
    display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
}
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.profile-sidebar-info {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
}
.profile-stat-block { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.profile-stat {
    flex: 1; text-align: center; padding: 10px; background: var(--bg-box-alt);
    border-radius: var(--radius); font-size: 0.78rem; color: var(--text-muted);
}
.profile-stat span { display: block; font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.profile-info-list { font-size: 0.84rem; color: var(--text-light); }
.profile-info-list div { padding: 6px 0; border-bottom: 1px solid var(--border); }
.profile-info-list strong { color: var(--text); margin-right: 8px; }
.profile-bio { margin-top: 16px; }
.profile-bio h3 { font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.profile-bio p { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; }
.profile-main { min-width: 0; }
.profile-edit-section, .profile-recent-posts {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 20px;
}
.profile-edit-section h3, .profile-recent-posts h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.recent-post-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-title { font-size: 0.88rem; font-weight: 600; color: var(--white); display: block; margin-bottom: 3px; }
.recent-post-title:hover { color: var(--accent); }
.recent-post-cat { font-size: 0.72rem; color: var(--text-muted); }
.recent-post-preview { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
/* Followers widget */
.profile-followers-widget {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.profile-followers-widget h3 {
    font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 12px;
}
.profile-followers-widget h3 i { color: var(--accent); margin-right: 6px; }
.followers-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.follower-item {
    display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--border); transition: border-color 0.2s ease;
}
.follower-item:hover { border-color: var(--accent); }
.follower-item img { width: 100%; height: 100%; object-fit: cover; }
.followers-more {
    text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 8px;
}
/* ========== CHATBOX ========== */
.chatbox {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    margin-bottom: 20px; overflow: hidden;
}
.chatbox-header {
    padding: 12px 18px; font-size: 0.88rem; font-weight: 600; color: var(--accent);
    background: var(--bg-box-alt); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.chatbox-header i { margin-right: 6px; }
.chatbox-messages {
    height: 240px; overflow-y: auto; padding: 10px 16px;
    display: flex; flex-direction: column; gap: 2px;
}
.chatbox-msg {
    display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px;
    border-radius: var(--radius); transition: background 0.15s ease;
}
.chatbox-msg:hover { background: rgba(255,255,255,0.02); }
.chatbox-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 1px;
}
.chatbox-msg-body { flex: 1; min-width: 0; font-size: 0.84rem; line-height: 1.45; }
.chatbox-msg-user {
    font-weight: 700; font-size: 0.82rem; margin-right: 6px;
    text-decoration: none;
}
.chatbox-msg-user:hover { text-decoration: underline; }
.chatbox-msg-text { color: var(--text-light); word-break: break-word; }
.chatbox-msg-time { font-size: 0.7rem; color: var(--text-muted); margin-left: 6px; white-space: nowrap; }
.chatbox-msg-del {
    background: none; border: none; color: var(--text-muted); font-size: 0.8rem;
    cursor: pointer; padding: 0 3px; opacity: 0; transition: opacity 0.15s ease;
}
.chatbox-msg:hover .chatbox-msg-del { opacity: 1; }
.chatbox-msg-del:hover { color: #f84848; }
.chatbox-input {
    display: flex; align-items: center; gap: 0; border-top: 1px solid var(--border);
    background: var(--bg-box-alt);
}
.chatbox-input input {
    flex: 1; background: transparent; border: none; padding: 12px 16px;
    font-family: 'Nunito', sans-serif; font-size: 0.84rem; color: var(--text-light);
    outline: none;
}
.chatbox-input input::placeholder { color: var(--text-muted); }
.chatbox-input button {
    background: none; border: none; padding: 12px 16px; color: var(--accent);
    font-size: 0.95rem; cursor: pointer; transition: color 0.2s ease;
}
.chatbox-input button:hover { color: var(--white); }
.chatbox-input--disabled {
    padding: 12px 16px; font-size: 0.82rem; color: var(--text-muted); text-align: center;
}
.chatbox-input--disabled a { color: var(--accent); }
/* Bot name glow */
.chatbox-bot-name {
    color: #39ff14 !important; font-weight: 800;
    text-shadow: 0 0 6px rgba(57,255,20,0.5), 0 0 12px rgba(57,255,20,0.25);
}
/* @mention pings */
.chatbox-ping {
    color: var(--accent); font-weight: 600; background: rgba(214,130,158,0.1);
    border-radius: 3px; padding: 0 2px;
}
.chatbox-ping--me {
    background: rgba(214,130,158,0.2); border: 1px solid rgba(214,130,158,0.3);
}
/* Suggest dropdown */
.chatbox-suggest {
    background: var(--bg-box-alt); border-top: 1px solid var(--border);
    padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 2px;
}
.chatbox-suggest-item {
    padding: 6px 12px; border-radius: var(--radius); cursor: pointer;
    font-size: 0.82rem; transition: background 0.15s ease;
}
.chatbox-suggest-item:hover { background: rgba(255,255,255,0.06); }
.chatbox-suggest-cmd { color: var(--accent); font-weight: 700; }
.chatbox-suggest-desc { color: var(--text-muted); font-size: 0.75rem; }
/* ========== NOTIFICATIONS ========== */
.notif-bell { position: relative; display: inline-flex; align-items: center; color: var(--text-muted); font-size: 1rem; margin-right: 6px; }
.notif-bell:hover { color: var(--text-light); }
.notif-badge {
    position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px;
    background: #f84848; color: #fff; font-size: 0.65rem; font-weight: 700;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
    background: var(--bg-box); border: 1px solid var(--border); border-bottom: none;
    transition: background 0.2s ease;
}
.notif-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.notif-item:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.notif-item:only-child { border-radius: var(--radius-lg); border-bottom: 1px solid var(--border); }
.notif-unread { background: rgba(214,130,158,0.04); border-left: 3px solid var(--accent); }
.notif-icon { color: var(--accent); font-size: 0.9rem; padding-top: 2px; }
.notif-body { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.notif-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-text { flex: 1; min-width: 0; }
.notif-text a { font-size: 0.86rem; color: var(--text-light); display: block; }
.notif-text a:hover { color: var(--accent); }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; display: block; }
/* ========== PAGINATION ========== */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 10px;
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.82rem; color: var(--text-light); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
/* ========== NOTICES ========== */
.notice { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.88rem; }
.notice--error { background: rgba(248,72,72,0.1); border: 1px solid rgba(248,72,72,0.3); color: #f84848; }
.notice--success { background: rgba(72,248,134,0.1); border: 1px solid rgba(72,248,134,0.3); color: #48f886; }
.notice--info { background: rgba(72,126,248,0.1); border: 1px solid rgba(72,126,248,0.3); color: #487ef8; }
.notice a { color: inherit; text-decoration: underline; }
/* ========== FORMS (global) ========== */
.block-form { max-width: 500px; }
.form-row { margin-bottom: 16px; display: block; }
.form-row label { display: block; width: 100%; font-size: 0.84rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.form-row--checkbox label { display: flex; width: auto; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.form-row--submit { margin-top: 20px; }
.form-row--alt { font-size: 0.84rem; color: var(--text-muted); margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.form-row--alt a { color: var(--accent); }
.textarea { resize: vertical; min-height: 120px; width: 100%; }
/* ========== BUTTONS (extended) ========== */
.btn-primary,
a.btn-primary,
button.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto; max-width: max-content;
    padding: 11px 26px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif; font-size: 0.88rem; font-weight: 700; cursor: pointer;
    text-decoration: none; line-height: 1.4;
    transition: background 0.2s ease;
}
.btn-primary:hover, a.btn-primary:hover {
    background: var(--accent-light); color: #fff;
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: transparent; color: var(--text-light); border: 1px solid var(--border);
    border-radius: var(--radius-md); font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: all 0.25s ease; text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(214,130,158,0.05); }
.btn-danger { background: rgba(248,72,72,0.1); border-color: rgba(248,72,72,0.3); color: #f84848; }
.btn-danger:hover { background: #f84848; color: #fff; border-color: #f84848; }
.btn-follow {
    padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 0.82rem;
    transition: all 0.25s ease; cursor: pointer; border: none;
}
.login-blocks .btn-primary {
    width: 100%;
    max-width: 100%;
}
.btn-follow--active { background: var(--bg-input); color: var(--text-light); border: 1px solid var(--border); }
.btn-follow--active:hover { border-color: #f84848; color: #f84848; }
.btn-follow--inactive { background: var(--accent); color: #fff; }
.btn-follow--inactive:hover { background: var(--accent-light); }
/* ========== REACTIONS ========== */
.post-reactions { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-top: 1px solid var(--border); }
.reaction-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    background: transparent; border: 1px solid var(--border); border-radius: 20px;
    color: var(--text-muted); font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: all 0.25s ease;
}
.reaction-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(214,130,158,0.06); }
.reaction-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(214,130,158,0.1); }
.reaction-btn i { font-size: 0.85rem; }
.reaction-btn.active i { color: var(--accent); }
.reaction-count { font-size: 0.78rem; color: var(--text-muted); }
/* ========== CATEGORY DESCRIPTION ========== */
.category-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
/* ========== EMPTY STATE ========== */
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 0.88rem; background: var(--bg-box); border-radius: var(--radius-lg); }
.empty-state a { color: var(--accent); }
/* ========== ONLINE WIDGET ========== */
.widget-online {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 20px; margin-top: 20px;
}
.widget-online h3 { font-size: 0.92rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.widget-online .count { color: var(--text-muted); font-weight: 400; }
.online-list { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; margin-bottom: 10px; }
.online-stats { font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
/* ========== ADMIN PANEL ========== */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-stat-card {
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; text-align: center;
}
.admin-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--white); font-family: 'Montserrat', sans-serif; }
.admin-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.admin-nav { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-nav-item {
    display: flex; align-items: center; gap: 8px; padding: 14px 24px;
    background: var(--bg-box); border: 1px solid var(--border); border-radius: var(--radius-lg);
    color: var(--text-light); font-size: 0.88rem; font-weight: 600; transition: all var(--transition);
}
.admin-nav-item:hover { border-color: var(--accent); color: var(--accent); }
.admin-section { margin-bottom: 24px; }
.admin-section h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th {
    text-align: left; padding: 10px 14px; background: var(--bg-box-alt); color: var(--text-muted);
    font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; max-width: 100%; }
.admin-filter-bar .input { max-width: 200px; }
.admin-edit-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.admin-edit-grid .block-form { flex: 1; min-width: 240px; }
.admin-danger-zone { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-cat-form { max-width: 600px; }
/* ========== LOGIN BLOCKS ========== */
.login-blocks { max-width: 420px; margin: 0 auto; }
.login-blocks .block-form { max-width: 100%; }
/* ========== RESPONSIVE (forum/topic/profile) ========== */
@media (max-width: 768px) {
    .topic-row { flex-wrap: wrap; }
    .topic-row__stats, .topic-row__lastPost { display: none; }
    .cForumRow { flex-wrap: wrap; }
    .popp--forums-stats, .cForumRow__lastPost { display: none; }
    .post-item { flex-direction: column; }
    .post-sidebar { width: 100%; flex-direction: row; gap: 12px; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); }
    .post-avatar { width: 40px; height: 40px; margin-bottom: 0; }
    .post-user-stats, .post-user-joined { display: none; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; text-align: center; }
    .admin-edit-grid { flex-direction: column; }
}
/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }