/* DESIGN TOKENS & RESET */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --surface-hover: #282828;
    --border-color: #2a2a2a;
    --text-main: #cccccc;
    --text-muted: #888888;
    --primary-color: #386b8d;
    --primary-hover: #4a8ebf;
    --accent-green: #2ecc71;
    --accent-pink: #ea69be;
    --accent-blue: #1890bf;
    --accent-red: #ea6975;
    
    --radius-lg: 4px;
    --radius-md: 4px;
    --radius-sm: 2px;
    --shadow-sm: 2px 2px 2px #0a0a0a;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --font-family: 'Roboto', sans-serif;
    --transition: all 0.2s ease;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z" fill="%230f0f0f" fill-opacity="0.4" fill-rule="evenodd"/></svg>');
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER & NAVBAR */
.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
}

/* ── Top nav bar — ince üst şerit ── */
.top-nav-bar {
    background-color: #111;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.top-nav-bar .top-nav-links {
    display: flex;
    padding: 0;
}
.top-nav-bar .top-nav-right {
    padding: 0;
    display: flex;
    align-items: center;
}
.top-nav-links a {
    color: #bbb;
    font-weight: 500;
    padding: 9px 13px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.top-nav-links a i { font-size: 12px; }
.top-nav-links a:hover { background-color: #1e1e1e; color: #fff; text-decoration: none; }
.top-nav-links a.active { color: #fff; }

/* ── Logo banner — orta büyük alan ── */
.logo-banner {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 32px 0;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    padding-bottom: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(245,197,24,0.35));
    margin-bottom: -2px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    align-self: center;
    margin-bottom: 8px;
}
.logo-name {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
}
.logo-ext { color: var(--primary-color); }
.logo-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-left: 2px;
}
.logo-banner-search {
    position: absolute;
    right: 32px;
    bottom: 10px;
}
.logo-banner-search .search-bar {
    background-color: #111;
    border: 1px solid #333;
}
.logo-banner-search .search-bar input { width: 200px; }

/* hide old elements */
.header-top { display: none; }
.top-nav     { display: none; }

/* keep search-bar base styles */
.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 4px 12px;
    border: 1px solid var(--border-color);
}
.search-bar input {
    border: none;
    background: transparent;
    padding: 6px;
    color: #fff;
    outline: none;
}
.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-login {
    background-color: transparent;
    color: #ccc;
    border: 1px solid #444;
}
.btn-login:hover {
    background-color: #2a2a2a;
    color: #fff;
}
.btn-register {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}
.btn-register:hover {
    background-color: #2b5673;
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}
.icon-btn:hover { color: #fff; }

.avatar, .avatar-sm, .avatar-xs, .avatar-lg, .nav-user-avatar {
    border-radius: 4px;
    object-fit: cover;
}
.avatar    { width: 32px; height: 32px; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-lg { width: 64px; height: 64px; border: 1px solid var(--border-color); }
.nav-user-avatar { width: 20px; height: 20px; border-radius: 3px; vertical-align: middle; }

.forum-tabs {
    display: flex;
    background-color: #1a1a1a;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.forum-tabs a {
    color: #999;
    font-weight: 500;
    padding: 12px 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-tabs a i {
    color: var(--primary-color);
    font-size: 14px;
}
.forum-tabs a:hover {
    color: #fff;
    background-color: #242424;
    text-decoration: none;
}
.forum-tabs a.active {
    color: #fff;
    background-color: #333333;
}
.forum-tabs a.active i {
    color: #fff;
}

/* AD BANNER */
.ad-banner {
    margin-top: 20px;
    background: linear-gradient(135deg, #0a0014 0%, #1a0a2e 30%, #0d001a 60%, #12001f 100%);
    border: 1px solid #3d1a6e;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(120, 40, 200, 0.25), inset 0 0 60px rgba(80, 20, 160, 0.15);
}
.ad-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(120, 50, 200, 0.03) 2px,
        rgba(120, 50, 200, 0.03) 4px
    );
    pointer-events: none;
}
.ad-banner::after {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 80, 255, 0.08), transparent);
    animation: adShimmer 4s infinite;
    pointer-events: none;
}
@keyframes adShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}
.ad-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px 12px;
    position: relative;
    z-index: 1;
}
.ad-text-solid {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(180, 80, 255, 0.5);
}
.ad-text-outline {
    font-size: 2.4rem;
    font-weight: 900;
    color: transparent;
    letter-spacing: 6px;
    text-transform: uppercase;
    -webkit-text-stroke: 2px #fff;
    text-shadow: 0 0 30px rgba(180, 80, 255, 0.4);
}
.ad-banner-sub {
    text-align: center;
    font-size: 12px;
    color: rgba(180, 140, 220, 0.7);
    padding: 0 20px 16px;
    position: relative;
    z-index: 1;
}

/* ANNOUNCEMENTS (legacy, kept for reference) */
.announcements {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.announce-box {
    background-color: var(--surface-hover);
    color: #fff;
    text-transform: uppercase;
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}
.announce-box a {
    text-decoration: none;
}
.announce-box a:hover {
    text-decoration: underline;
}
.text-green { color: var(--accent-green) !important; }
.text-pink { color: var(--accent-pink) !important; }
.text-blue { color: var(--accent-blue) !important; }
.text-red { color: var(--accent-red) !important; }

/* SHOUTBOX */
.shoutbox {
    margin-top: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.shoutbox-header {
    background: linear-gradient(to bottom, #2b2b2b, #1f1f1f);
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
}
.shoutbox-content {
    height: 150px;
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    background-color: #1a1a1a;
}
.shout-msg {
    margin-bottom: 6px;
}
.shout-msg .time { color: var(--text-muted); font-size: 11px; margin-right: 5px; }
.shout-msg .user { font-weight: 700; margin-right: 5px; } /* renk server'dan inline style ile gelir */
.shout-msg .text { color: #ccc; }
.shoutbox-input {
    display: flex;
    padding: 8px;
    background-color: var(--surface-hover);
    border-top: 1px solid var(--border-color);
}
.shoutbox-input input {
    flex: 1;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 10px;
    outline: none;
}

/* MAIN LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
}
@media(min-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr 280px;
    }
}

/* CATEGORY & NODES */
.category-block {
    margin-bottom: 20px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.category-title {
    background-color: var(--primary-color);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: none;
}

.node-header {
    display: flex;
    background-color: #1a1a1a;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}
.node-header .col-forum { flex: 1; padding-left: 66px; }
.node-header .col-stats-wrap { width: 140px; display: flex; text-align: center; }
.node-header .col-stats-wrap > div { flex: 1; }
.node-header .col-last { width: 220px; padding-left: 10px;}

.node-list {
    display: flex;
    flex-direction: column;
}

.node-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: #1a1a1a;
}
.node-item:nth-child(even) {
    background-color: #1e1e1e;
}
.node-item:last-child {
    border-bottom: none;
}
.node-item:hover {
    background-color: #242424;
}

.node-icon {
    font-size: 1.8rem;
    color: #444;
    width: 50px;
    text-align: center;
}
.node-icon.unread {
    color: var(--primary-color);
}

.node-main {
    flex: 1;
    padding-right: 16px;
}
.node-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.node-title a { color: #fff; cursor: pointer; }
.node-title a:hover { color: var(--primary-hover); }
.node-desc {
    font-size: 12px;
    color: var(--text-muted);
}
.sub-forums {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.sub-forums i {
    color: var(--primary-color);
    margin-right: -4px;
}
.node-stats {
    width: 140px;
    display: flex;
    text-align: center;
    font-size: 13px;
    color: #ccc;
}
.node-stats > div {
    flex: 1;
}
.node-stats span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.node-last-post {
    width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.last-post-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.last-post-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ccc;
}
.last-post-meta {
    color: var(--text-muted);
    font-size: 11px;
}

@media (max-width: 768px) {
    .node-item { flex-wrap: wrap; }
    .node-stats, .node-last-post { display: none; }
}

/* SIDEBAR WIDGETS */
.widget {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.widget-title {
    background: linear-gradient(to bottom, #2b2b2b, #1f1f1f);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #000;
}

.widget-content {
    padding: 12px 16px;
    background-color: #1a1a1a;
    font-size: 13px;
}

.trend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trend-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trend-info a {
    color: #ccc;
    font-weight: 500;
}
.trend-info span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.forum-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ccc;
}
.forum-stats div {
    display: flex;
    justify-content: space-between;
}

/* FOOTER */
.footer {
    background-color: #111;
    border-top: 1px solid #000;
    padding: 30px 0;
    margin-top: auto;
    font-size: 13px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}
.footer-links {
    display: flex;
    gap: 16px;
}
.footer-links a {
    color: #888;
}
.footer-links a:hover {
    color: #fff;
}

#termsModal, #privacyModal {
    z-index: 1100;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    width: 400px;
    padding: 24px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #999;
    font-size: 24px;
    cursor: pointer;
}
.close-modal:hover {
    color: #fff;
}
.modal-title {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}
.auth-form .form-group {
    margin-bottom: 15px;
}
.auth-form label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    font-size: 13px;
}
.auth-form input {
    width: 100%;
    padding: 10px;
    background-color: #111;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 3px;
    outline: none;
}
.auth-form input:focus {
    border-color: var(--primary-color);
}
.btn-primary {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-primary:hover {
    background-color: #2b5673;
}
.modal-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* MODAL TABS */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.modal-tab {
    flex: 1;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.modal-tab.active {
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
}
.modal-tab:hover {
    color: #fff;
}

/* FORM CHECK */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #aaa;
}
.form-check input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.form-check label {
    display: inline;
    margin: 0;
    cursor: pointer;
    color: #aaa;
}
.form-check a {
    color: var(--primary-hover);
}
.forgot-link {
    margin-left: auto;
    color: var(--primary-hover);
    font-size: 12px;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    font-size: 13px;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--primary-hover);
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.bc-sep {
    color: #555;
}
.bc-current {
    color: #fff;
    font-weight: 600;
}

/* FORUM SUBVIEWS */
.forum-subview {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.subview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background-color: var(--primary-color);
    gap: 12px;
    flex-wrap: wrap;
}
.subview-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}
.subview-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #2b5673;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-action:hover {
    background-color: #1e4055;
    color: #fff;
    text-decoration: none;
}

/* THREAD TABLE */
.thread-table-wrap {
    overflow-x: auto;
}
.thread-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.thread-table thead {
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
}
.thread-table th {
    padding: 10px 14px;
    text-align: left;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}
.thread-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    color: #ccc;
}
.thread-row:hover {
    background-color: #242424;
}
.thread-row.pinned {
    background-color: rgba(56, 107, 141, 0.1);
}
.col-icon { width: 40px; text-align: center; color: var(--primary-color); }
.col-replies, .col-views { width: 80px; text-align: center; }
.col-last { width: 120px; color: #888; font-size: 12px; }
.thread-link {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.thread-link:hover {
    color: var(--primary-hover);
}
.thread-meta {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* THREAD DETAIL */
.thread-detail-header {
    padding: 16px;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}
.thread-detail-info {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
}
.thread-detail-info i {
    margin-right: 4px;
}
.thread-posts {
    display: flex;
    flex-direction: column;
}
.post-item {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: #1a1a1a;
}
.post-item:nth-child(even) {
    background-color: #1e1e1e;
}
.post-sidebar {
    width: 140px;
    padding: 16px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    background-color: #161616;
    flex-shrink: 0;
}
.post-avatar {
    width: 48px;
    height: 48px;
    background-color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: #888;
}
.post-author {
    font-weight: 700;
    color: var(--primary-hover);
    font-size: 13px;
}
.post-role {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}
.post-body {
    flex: 1;
    padding: 16px;
    min-width: 0;
}
.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}
.post-content {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    word-break: break-word;
}
.post-content pre {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 13px;
}
.post-content code {
    color: var(--accent-green);
    font-family: 'Consolas', monospace;
}

.reply-box {
    padding: 16px;
    background-color: #161616;
    border-top: 1px solid var(--border-color);
}
.reply-box h3 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
}
.reply-box textarea {
    width: 100%;
    padding: 12px;
    background-color: #111;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 3px;
    outline: none;
    resize: vertical;
    font-family: var(--font-family);
    font-size: 13px;
    margin-bottom: 10px;
}
.reply-box textarea:focus {
    border-color: var(--primary-color);
}

/* LEGAL MODAL */
.modal-wide {
    width: 560px;
    max-height: 80vh;
    overflow-y: auto;
}
.legal-content {
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
}
.legal-content h3 {
    color: #fff;
    font-size: 14px;
    margin: 16px 0 6px;
}
.legal-content p {
    margin-bottom: 8px;
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    max-width: 320px;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-info { background-color: var(--primary-color); }
.toast-success { background-color: var(--accent-green); color: #111; }
.toast-error { background-color: var(--accent-red); }

/* LOGGED USER */
.logged-user {
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.empty-row {
    text-align: center;
    padding: 30px 16px !important;
    color: #888;
    font-size: 14px;
}

/* ── PROFILE VIEW ──────────────────────────────────────────── */
.profile-cover {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}
.profile-cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%);
    z-index: 0;
}
.profile-cover-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(56, 107, 141, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(234, 105, 117, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    z-index: 1;
}
.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 18, 18, 0.9) 100%);
    z-index: 2;
}
.profile-cover-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding: 40px 32px 28px;
    min-height: 280px;
}
.profile-cover-avatar-col {
    flex-shrink: 0;
}
.profile-avatar-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-avatar-wrap:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #555;
    background: #1a1a1a;
}
.profile-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.9);
}
.profile-avatar-status i {
    font-size: 10px;
    color: #2ecc71;
}

.profile-cover-info {
    flex: 1;
    padding-bottom: 8px;
}
.profile-username {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}
.profile-cover-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.profile-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(56, 107, 141, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-joindate {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.profile-bio-wrap {
    max-width: 500px;
}
.profile-bio-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-style: italic;
    border-left: 3px solid rgba(56, 107, 141, 0.6);
    padding-left: 14px;
    margin-top: 4px;
}

/* Profile Body */
.profile-body {
    background: #1a1a1a;
    padding: 20px 24px 28px;
    border-radius: 0 0 4px 4px;
}

/* Stats Bar */
.profile-stats-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.profile-stat {
    flex: 1;
    min-width: 100px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    cursor: default;
}
.profile-stat:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.profile-stat-icon {
    display: block;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.profile-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.profile-stat small {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Section Title */
.profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-section-title i {
    color: var(--primary-color);
}

/* Badges */
.profile-badges-wrap {
    margin-bottom: 24px;
}
.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1e2a3a, #162230);
    border: 1px solid #2a3a4a;
    border-radius: 20px;
    padding: 5px 14px 5px 10px;
    font-size: 12px;
    color: #bbb;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}
.profile-badge:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #1e2a3a, #1a3040);
}
.profile-badge i {
    color: var(--accent-blue);
    font-size: 12px;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Card */
.profile-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.profile-card:last-child {
    margin-bottom: 0;
}
.profile-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #ccc;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-card-title i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Info List */
.profile-info-list {
    padding: 8px 0;
}
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    transition: background 0.15s;
}
.profile-info-row:last-child {
    border-bottom: none;
}
.profile-info-row:hover {
    background: rgba(56, 107, 141, 0.05);
}
.profile-info-label {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-info-label i {
    width: 16px;
    text-align: center;
    color: #555;
}
.profile-info-value {
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
    text-align: right;
}
.profile-status-badge {
    color: #2ecc71;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.profile-status-badge i {
    font-size: 8px;
}

/* Signature */
.profile-signature {
    padding: 14px 16px;
    font-size: 13px;
    color: #999;
    font-style: italic;
    line-height: 1.6;
    border-left: 3px solid var(--primary-color);
    margin: 0;
}

/* Latest Threads in Profile */
.profile-latest-threads {
    padding: 8px 0;
}
.profile-thread-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #222;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.profile-thread-link:last-child {
    border-bottom: none;
}
.profile-thread-link:hover {
    background: rgba(56, 107, 141, 0.08);
    color: #fff;
    text-decoration: none;
}
.profile-thread-link i {
    color: var(--primary-color);
    font-size: 11px;
    flex-shrink: 0;
}
.profile-thread-link .thread-forum {
    font-size: 11px;
    color: #666;
    margin-left: auto;
    flex-shrink: 0;
}
.profile-empty {
    padding: 20px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Username links in posts - clickable */
.post-author-link, .thread-author-link {
    color: var(--primary-hover);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}
.post-author-link:hover, .thread-author-link:hover {
    color: #fff;
    text-decoration: underline;
}
.thread-author-link strong {
    font-weight: inherit;
}

/* Profile links in sidebar (Newest member) */
.newest-profile-link {
    color: var(--primary-hover);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.newest-profile-link:visited {
    color: var(--primary-hover);
}
.newest-profile-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Shoutbox username links */
.shout-user-link {
    color: #1890bf;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.shout-user-link:visited {
    color: #1890bf;
}
.shout-user-link:hover {
    color: #fff;
    text-decoration: underline !important;
}

/* Thread detail info bar author link */
.td-author-link {
    color: var(--primary-hover);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.td-author-link:visited {
    color: var(--primary-hover);
}
.td-author-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ACHIEVEMENTS */
.achievements-body {
    padding: 16px;
    background-color: #1a1a1a;
}
.ach-stats-bar {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    background-color: #161616;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #aaa;
    flex-wrap: wrap;
}
.ach-stat strong {
    color: var(--accent-green);
}
.ach-section-title {
    font-size: 14px;
    color: #fff;
    margin: 20px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.ach-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background-color: #161616;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s;
}
.ach-card.unlocked {
    border-color: rgba(46, 204, 113, 0.4);
    background-color: rgba(46, 204, 113, 0.05);
}
.ach-card.locked {
    opacity: 0.5;
}
.ach-icon {
    width: 42px;
    height: 42px;
    background-color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-hover);
    flex-shrink: 0;
}
.ach-card.unlocked .ach-icon {
    color: var(--accent-green);
    background-color: rgba(46, 204, 113, 0.15);
}
.ach-info { flex: 1; min-width: 0; }
.ach-title { font-weight: 700; color: #fff; font-size: 14px; }
.ach-desc { font-size: 12px; color: #888; margin-top: 2px; }
.ach-badge { color: var(--accent-green); font-size: 16px; }
.ach-badge.locked-badge { color: #555; }
.ach-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: #161616;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}
.lb-rank {
    color: var(--primary-hover);
    font-weight: 700;
    width: 30px;
}
.lb-user {
    flex: 1;
    color: #fff;
    font-weight: 600;
}
.lb-stats {
    color: #888;
    font-size: 12px;
}

@media (max-width: 768px) {
    .ad-text-solid, .ad-text-outline { font-size: 1.5rem; letter-spacing: 3px; }
    .post-item { flex-direction: column; }
    .post-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 10px 16px;
    }
    .post-avatar { margin: 0; width: 36px; height: 36px; font-size: 16px; }
    .col-replies, .col-views { display: none; }
    .modal-wide { width: 95%; }
}

/* SETTINGS MODAL */
.settings-section {
    margin-bottom: 20px;
}
.settings-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}
.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}
.settings-row:last-child { border-bottom: none; }
.settings-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.settings-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.settings-select {
    background-color: #111;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 3px;
    outline: none;
    font-size: 13px;
    cursor: pointer;
}
.settings-select:focus { border-color: var(--primary-color); }
.settings-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.settings-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-hover);
    padding: 6px 0;
}
.settings-links a:hover { color: #fff; text-decoration: none; }
.settings-links a i { width: 16px; text-align: center; }

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #333;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background-color: var(--primary-color); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* HELP MODAL */
.help-modal-content {
    width: 620px;
    padding: 20px 0 0;
}
.help-modal-content > .close-modal { top: 15px; right: 20px; }
.help-modal-content > .modal-title {
    padding: 0 20px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.help-section {
    border-bottom: 1px solid #111;
}
.help-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    user-select: none;
    transition: background 0.2s;
}
.help-section-header:hover { background-color: var(--primary-hover); }
.help-toggle-icon { font-size: 12px; color: rgba(255,255,255,0.8); }

.help-section-body {
    background-color: #1a1a1a;
    padding: 10px 20px 4px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.help-section-body.collapsed { display: none; }

.help-section-desc {
    font-size: 12px;
    color: #888;
    padding: 6px 0 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

.help-item {
    padding: 9px 0;
    border-bottom: 1px solid #222;
}
.help-item:last-child { border-bottom: none; }
.help-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 2px;
}
.help-item-title.help-item-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    padding: 2px 0;
}
.help-item-title.help-item-toggle:hover { color: #fff; }
.help-item-icon {
    font-size: 11px;
    color: #888;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.help-item-desc {
    font-size: 12px;
    color: #888;
}
.help-item-desc a { color: var(--primary-hover); }
.help-item-desc a:hover { text-decoration: underline; }



/* ── NEW THREAD PAGE ─────────────────────────────────────────── */
.new-thread-page {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: var(--bg-color);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nt-container {
    width: 100%;
    max-width: 900px;
    padding: 24px 16px 60px;
}
.nt-header {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-radius: 3px 3px 0 0;
}
.nt-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    cursor: pointer;
}
.nt-close:hover { color: #fff; }

.nt-section {
    border: 1px solid var(--border-color);
    border-top: none;
    background: var(--surface-color);
}
.nt-section-label {
    background: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nt-section-body {
    padding: 12px 14px;
}
.nt-input {
    width: 100%;
    background: #111;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
    border-radius: 2px;
    font-family: var(--font-family);
}
.nt-input:focus { border-color: var(--primary-color); }

/* Toolbar */
.nt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: #161616;
    border: 1px solid var(--border-color);
    border-bottom: none;
    padding: 6px 8px;
    border-radius: 2px 2px 0 0;
}
.nt-tool {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #ccc;
    padding: 4px 9px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    min-width: 28px;
    text-align: center;
    transition: background 0.15s;
}
.nt-tool:hover { background: #3a3a3a; color: #fff; }
.nt-tool-sep {
    width: 1px;
    background: #3a3a3a;
    margin: 2px 4px;
    align-self: stretch;
}

/* Editor */
.nt-editor {
    min-height: 220px;
    background: #111;
    border: 1px solid var(--border-color);
    border-top: none;
    color: #ccc;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    border-radius: 0 0 2px 2px;
    font-family: var(--font-family);
}
.nt-editor:empty::before {
    content: attr(data-placeholder);
    color: #555;
}
.nt-editor blockquote {
    border-left: 3px solid var(--primary-color);
    margin: 8px 0;
    padding: 4px 12px;
    background: #1a1a1a;
    color: #aaa;
}
.nt-editor pre { background: #0a0a0a; padding: 10px; border-radius: 3px; margin: 8px 0; }
.nt-editor code { color: var(--accent-green); font-family: Consolas, monospace; }
.nt-editor a { color: var(--primary-hover); }
.nt-editor img { max-width: 100%; border-radius: 3px; margin: 4px 0; }

/* Options */
.nt-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
}
.nt-check input { cursor: pointer; }
.nt-check small { color: #666; }

/* Action buttons */
.nt-actions {
    display: flex;
    gap: 8px;
    padding: 16px 0 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.nt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.nt-btn-primary { background: var(--primary-color); color: #fff; }
.nt-btn-primary:hover { background: #2b5673; }
.nt-btn-secondary { background: #2a2a2a; color: #ccc; border: 1px solid #444; }
.nt-btn-secondary:hover { background: #333; color: #fff; }
.nt-btn-ghost { background: transparent; color: #888; border: 1px solid #333; }
.nt-btn-ghost:hover { background: #1e1e1e; color: #ccc; }

/* Preview */
.nt-preview-area {
    margin-top: 16px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}
.nt-preview-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    min-height: 60px;
}

/* ── LIKE GATE ───────────────────────────────────────────────── */
.like-gate-badge {
    background: rgba(234,105,117,0.15);
    color: #ea6975;
    border: 1px solid rgba(234,105,117,0.3);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.like-gate-badge i { margin-right: 3px; }

.thread-like-btn-wrap { margin-left: auto; }
.thread-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #1e1e1e;
    border: 1px solid #444;
    color: #aaa;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.thread-like-btn:hover { border-color: #ea6975; color: #ea6975; }
.thread-like-btn.liked { background: rgba(234,105,117,0.12); border-color: #ea6975; color: #ea6975; }
.thread-like-btn i { font-size: 12px; }

/* Like-gate duvarı */
.like-gate-wall {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(18,18,18,0) 0%, #121212 60%);
    display: flex;
    justify-content: center;
    padding: 40px 20px 48px;
    margin-top: -40px;
}
.like-gate-wall-inner {
    text-align: center;
    max-width: 360px;
}
.like-gate-wall-inner > i {
    font-size: 2.4rem;
    color: #ea6975;
    margin-bottom: 12px;
    display: block;
}
.like-gate-wall-inner h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}
.like-gate-wall-inner p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}
.like-gate-wall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ea6975;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.like-gate-wall-btn:hover { background: #d45560; }

/* like-gate checkbox row */
.nt-likegate-row {
    border-top: 1px solid #2a2a2a;
    padding-top: 8px;
    margin-top: 4px;
}

/* Thread listesinde like-gate badge */
.tl-likegate-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #ea6975;
    background: rgba(234,105,117,0.1);
    border: 1px solid rgba(234,105,117,0.25);
    border-radius: 2px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── PROFILE DROPDOWN ────────────────────────────────────────── */
.profile-dropdown {
    position: absolute;
    z-index: 1000;
    width: 260px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
    display: none;
}
.pd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.pd-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}
.pd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-info {
    flex: 1;
    min-width: 0;
}
.pd-username {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.pd-stats {
    font-size: 11px;
    color: var(--text-muted);
}
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.pd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background-color: #161616;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    gap: 6px;
}
.pd-item:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}
.pd-item i {
    font-size: 15px;
    color: var(--primary-color);
}
.pd-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0 8px;
}
.pd-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: rgba(234, 105, 117, 0.08);
    border: 1px solid rgba(234, 105, 117, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}
.pd-logout:hover {
    background-color: rgba(234, 105, 117, 0.15);
    border-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
}

/* ── USER CONTROL PANEL (UCP) ────────────────────────────────── */
.ucp-layout {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .ucp-layout {
        flex-direction: column;
    }
}
.ucp-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}
@media (max-width: 768px) {
    .ucp-sidebar {
        width: 100%;
    }
}
.ucp-sidebar-section {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px 6px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 6px;
}
.ucp-sidebar-section:not(:first-child) {
    margin-top: 14px;
}
.ucp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.ucp-link:hover {
    background-color: var(--surface-hover);
    color: #fff;
    text-decoration: none;
}
.ucp-link.active {
    background-color: #141414;
    color: #fff;
    border-left-color: var(--primary-color);
}
.ucp-link i {
    font-size: 14px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}
.ucp-content {
    flex: 1;
    min-width: 0;
}
.ucp-panel {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.ucp-panel-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4055 100%);
    color: #fff;
    padding: 12px 18px;
    font-weight: 700;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.ucp-dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #161616;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.ucp-dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}
.ucp-dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ucp-dash-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.ucp-dash-username {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ucp-dash-email, .ucp-dash-regdate {
    font-size: 12px;
    color: var(--text-muted);
}
.ucp-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 576px) {
    .ucp-stat-row {
        grid-template-columns: 1fr;
    }
}
.ucp-stat {
    background-color: #161616;
    border: 1px solid var(--border-color);
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, border-color 0.2s;
}
.ucp-stat:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.ucp-stat i {
    font-size: 20px;
    color: var(--primary-color);
}
.ucp-stat span {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.ucp-stat small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ucp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ucp-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ucp-form-row label {
    font-size: 13px;
    font-weight: 700;
    color: #ccc;
}
.ucp-form-row input[type="text"],
.ucp-form-row input[type="password"],
.ucp-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    background-color: #111;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    outline: none;
    font-family: var(--font-family);
    font-size: 13px;
    transition: var(--transition);
}
.ucp-form-row input:focus,
.ucp-form-row textarea:focus {
    border-color: var(--primary-color);
}
.ucp-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    background-color: rgba(56, 107, 141, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 20px;
}
.ucp-avatar-section {
    display: flex;
    gap: 24px;
    align-items: center;
    background-color: #161616;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-lg);
}
@media (max-width: 576px) {
    .ucp-avatar-section {
        flex-direction: column;
        text-align: center;
    }
}
.ucp-avatar-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ucp-avatar-preview-wrap small {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.ucp-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    background-color: #222;
    border: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
    overflow: hidden;
}
.ucp-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ucp-avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ucp-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #242424;
    border: 1px solid #333;
    color: #fff;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}
@media (max-width: 576px) {
    .ucp-file-label {
        margin: 0 auto;
    }
}
.ucp-file-label:hover {
    background-color: #333;
    border-color: var(--primary-color);
}
.ucp-file-name {
    font-size: 12px;
    color: var(--text-muted);
}
.ucp-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.ucp-color-row input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 50px;
    height: 30px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 0;
}
.ucp-color-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.ucp-color-row input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.ucp-color-row small {
    color: var(--text-muted);
    font-size: 12px;
}
.ucp-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.ucp-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.ucp-save-btn:hover {
    background-color: var(--primary-hover);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}
.ucp-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ucp-save-btn.ucp-btn-secondary {
    background-color: #242424;
    border-color: #333;
    color: #ccc;
    text-shadow: none;
}
.ucp-save-btn.ucp-btn-secondary:hover {
    background-color: #2e2e2e;
    border-color: #444;
    color: #fff;
}

/* ── ROLE BADGES ────────────────────────────────────────────── */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.role-badge.owner {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #fff;
    border: 1px solid #d4af37;
}
.role-badge.admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: 1px solid #e74c3c;
}
.role-badge.member {
    background: #2b2b3e;
    color: #ccc;
    border: 1px solid #3d3d5c;
}

/* Small badges in posts */
.role-badge.owner-small {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}
.role-badge.admin-small {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}
.role-badge.starter-small {
    background: #2ecc71;
    color: #111;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}
.role-badge.member-small {
    background: #333;
    color: #999;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
    display: inline-block;
}

/* Delete Post and Admin Button styling */
.delete-post-btn {
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.delete-post-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}




