/* ================================================================
   RedFux Forum - Modern Dark Premium Theme v2.0
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #08080c;
    --bg-raised: #0f0f15;
    --card-bg: #14141e;
    --card-hover: #1a1a28;
    --surface: #1e1e2e;
    --border: rgba(255,255,255,.06);
    --border-light: rgba(255,255,255,.10);
    --border-glow: rgba(230,57,70,.15);
    --accent: #e63946;
    --accent-glow: rgba(230,57,70,.20);
    --accent-soft: #ff4d5a;
    --accent-dark: #b02633;
    --gold: #f0b429;
    --gold-soft: rgba(240,180,41,.12);
    --text: #e8e8f0;
    --text-soft: #a8a8be;
    --text-muted: #5e5e74;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.4);
    --shadow-glow: 0 0 24px var(--accent-glow), 0 0 48px rgba(230,57,70,.08);
    --ease: cubic-bezier(.4,0,.2,1);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    /* ── Voting/Polls Kompatibilitaet (Aliase) ── */
    --bg-darkest: var(--bg);
    --bg-darker: var(--bg-raised);
    --bg-dark: var(--card-bg);
    --bg-medium: var(--surface);
    --bg-light: var(--card-hover);
    --bg-lighter: #2d2d3a;
    --bg-hover: #33334a;
    --border-color: var(--border);
    --border-active: var(--accent);
    --text-primary: var(--text);
    --text-secondary: var(--text-soft);
    --text-link: var(--accent);
    --text-link-hover: var(--accent-soft);
    --red-primary: var(--accent);
    --red-dark: var(--accent-dark);
    --red-light: var(--accent-soft);
    --red-glow: var(--accent-glow);
    --transition: all 0.2s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-soft); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #ff8a93; }
img { max-width: 100%; }
code { font-size: .86em; padding: 2px 7px; background: rgba(255,255,255,.06); border-radius: 5px; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #252535; border-radius: 4px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.page-wrapper { padding: 24px 0 60px; }

/* HEADER */
.header { background: rgba(14,14,20,.92); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.6px; display: flex; align-items: center; gap: 3px; }
.logo-red { background: linear-gradient(135deg, #ff4d5a, #e63946); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-fux { color: var(--text); }
.logo-dot { font-size: 9px; color: var(--accent); margin-left: 2px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-weight: 500; transition: all .2s var(--ease); position: relative; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.main-nav a.active { color: var(--accent-soft); }
.main-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background: var(--accent); border-radius: 2px; }
.main-nav a i { margin-right: 5px; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-soft); font-size: 18px; cursor: pointer; padding: 8px; }
.user-menu { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 50px; cursor: pointer; transition: all .2s var(--ease); border: 1px solid transparent; background: rgba(255,255,255,.03); }
.user-menu-trigger:hover { background: rgba(255,255,255,.06); border-color: var(--border); }
.avatar-small { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.08); }
.user-menu-trigger span { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: rgba(20,20,30,.97); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: none; overflow: hidden; z-index: 100; }
.user-dropdown.show { display: block; animation: fadeIn .15s var(--ease); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--text-soft); font-size: 13px; transition: all .15s; }
.user-dropdown a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.user-dropdown a i { width: 16px; text-align: center; font-size: 13px; opacity: .6; }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; transition: all .2s var(--ease); text-decoration: none; line-height: 1.3; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #c7232f); color: #fff; box-shadow: 0 2px 10px var(--accent-glow); }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); color: #fff; filter: brightness(1.1); }
.btn-secondary { background: rgba(255,255,255,.05); color: var(--text-soft); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--border-light); }
.btn-outline { background: transparent; color: var(--accent-soft); border: 1px solid rgba(230,57,70,.3); }
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }
.btn-danger:hover { box-shadow: 0 0 16px rgba(220,38,38,.3); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn i { font-size: 12px; }

/* FORMS */
.form-control { width: 100%; padding: 10px 14px; font-size: 14px; font-family: var(--font); background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: all .2s var(--ease); outline: none; }
.form-control:focus { border-color: var(--accent); background: rgba(255,255,255,.05); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea.form-control { min-height: 130px; resize: vertical; line-height: 1.7; }
select.form-control { cursor: pointer; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .6px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-check input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ALERTS */
.alert { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; animation: slideUp .3s var(--ease); position: relative; }
.alert-success { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.15); color: #4ade80; }
.alert-danger { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.15); color: #f87171; }
.alert-warning { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.15); color: #fbbf24; }
.alert-info { background: rgba(59,130,246,.07); border-color: rgba(59,130,246,.15); color: #60a5fa; }
.alert-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: .6; transition: opacity .15s; }
.alert-close:hover { opacity: 1; }

/* BREADCRUMB */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent-soft); }
.breadcrumb .separator { color: var(--text-muted); font-size: 10px; opacity: .6; }

/* CLUBS SHOWCASE */
.clubs-showcase { margin-bottom: 32px; position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(230,57,70,.05) 0%, rgba(14,14,20,.5) 50%, rgba(240,180,41,.03) 100%); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px; }
.clubs-showcase::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; opacity: .4; }
.clubs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.clubs-header h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: -.3px; }
.clubs-header h2 i { color: var(--gold); font-size: 16px; }
.clubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 1; }
.club-card { background: rgba(20,20,30,.7); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 18px; transition: all .3s var(--ease); position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.club-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, var(--accent-glow)); opacity: 0; transition: opacity .3s; }
.club-card:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow-md), 0 0 30px rgba(230,57,70,.06); }
.club-card:hover::after { opacity: 1; }
.club-card.club-featured { border-color: rgba(230,57,70,.2); background: linear-gradient(145deg, rgba(20,20,30,.7), rgba(230,57,70,.06)); }
.club-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 20px; z-index: 2; text-transform: uppercase; letter-spacing: .7px; }
.club-icon { font-size: 24px; margin-bottom: 10px; color: var(--accent-soft); position: relative; z-index: 1; }
.club-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; position: relative; z-index: 1; }
.club-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; flex: 1; position: relative; z-index: 1; }
.club-rating { margin-top: 12px; font-size: 12px; color: var(--gold); position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; }
.club-rating span { color: var(--text-soft); font-weight: 600; }
.club-rating i { font-size: 10px; }

/* FORUM INDEX */
.category-section { margin-bottom: 20px; animation: slideUp .4s var(--ease) backwards; }
.category-section:nth-child(2) { animation-delay: .05s; }
.category-section:nth-child(3) { animation-delay: .1s; }
.category-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: linear-gradient(135deg, var(--card-bg), rgba(25,25,40,.95)); border: 1px solid var(--border); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.category-header h2 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .4px; }
.category-header h2 i { color: var(--accent-soft); font-size: 13px; }
.category-stats { display: flex; gap: 36px; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.forum-list { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); overflow: hidden; }
.forum-row { display: grid; grid-template-columns: 48px 1fr 70px 70px 210px; align-items: center; padding: 14px 22px; gap: 16px; background: var(--card-bg); border-bottom: 1px solid var(--border); transition: all .2s var(--ease); }
.forum-row:last-child { border-bottom: none; }
.forum-row:hover { background: var(--card-hover); }
.forum-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: all .25s var(--ease); border: 1px solid transparent; }
.forum-icon.has-new { background: var(--accent-glow); color: var(--accent-soft); border-color: var(--border-glow); box-shadow: 0 0 12px var(--accent-glow); }
.forum-row:hover .forum-icon { background: rgba(255,255,255,.06); border-color: var(--border); }
.forum-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.forum-info h3 a { color: var(--text); }
.forum-info h3 a:hover { color: var(--accent-soft); }
.forum-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.forum-stat { text-align: center; }
.stat-num { display: block; font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.forum-last-post { font-size: 12px; }
.forum-last-post .last-title { display: block; color: var(--text-soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.forum-last-post .last-title:hover { color: var(--accent-soft); }
.forum-last-post .last-meta { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.forum-last-post .last-date { color: var(--text-muted); font-size: 11px; }

/* THREAD LIST */
.forum-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.forum-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.thread-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.thread-item { display: grid; grid-template-columns: 40px 1fr 60px 60px 190px; align-items: center; padding: 13px 20px; gap: 14px; background: var(--card-bg); border-bottom: 1px solid var(--border); transition: all .2s var(--ease); }
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: var(--card-hover); }
.thread-icon { font-size: 14px; color: var(--text-muted); text-align: center; }
.thread-icon.sticky { color: var(--gold); }
.thread-icon.locked { color: var(--danger); }
.thread-title { font-size: 14px; font-weight: 600; }
.thread-title a { color: var(--text); }
.thread-title a:hover { color: var(--accent-soft); }
.thread-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.thread-meta a { color: var(--text-soft); }
.thread-stat { text-align: center; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.thread-stat small { display: block; font-size: 9px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.thread-last-post { font-size: 12px; color: var(--text-muted); }
.thread-last-post a { color: var(--text-soft); }
.thread-row { display: grid; grid-template-columns: 600px 1fr 60px 60px 160px; align-items: center; padding: 13px 20px; gap: 14px; background: var(--card-bg); border-bottom: 1px solid var(--border); transition: all .2s var(--ease); }
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: var(--card-hover); }
.thread-title-col { display: flex; align-items: center; gap: 12px; }
.thread-status-icon { width: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }
.thread-last-reply { font-size: 12px; color: var(--text-muted); }

/* POSTS */
.thread-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.thread-header h1 { font-size: 22px; font-weight: 800; flex: 1; letter-spacing: -.3px; }
.post-container { display: flex; flex-direction: column; gap: 3px; }
.post-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all .25s var(--ease); }
.post-item:hover { border-color: var(--border-light); }
.post-item:target { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.post-layout { display: grid; grid-template-columns: 190px 1fr; min-height: 150px; }
.post-sidebar { padding: 22px 18px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.post-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.08); margin-bottom: 6px; transition: all .3s var(--ease); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.post-item:hover .post-avatar { border-color: var(--accent-glow); box-shadow: 0 4px 16px rgba(0,0,0,.4), 0 0 12px var(--accent-glow); }
.post-username { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.post-role { font-size: 9px; font-weight: 800; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .8px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.post-role.administrator { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.2); color: #f87171; }
.post-role.moderator { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.2); color: #60a5fa; }
.post-role.vip { background: var(--gold-soft); border-color: rgba(240,180,41,.2); color: var(--gold); }
.post-user-stats { font-size: 11px; color: var(--text-muted); margin-top: 6px; line-height: 1.7; }
.post-main { padding: 20px 24px; display: flex; flex-direction: column; }
.post-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.post-header i { margin-right: 4px; }
.post-actions { display: flex; align-items: center; gap: 4px; }
.post-actions a, .post-actions button { background: none; border: none; padding: 5px 8px; border-radius: 6px; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: all .15s var(--ease); font-family: var(--font); }
.post-actions a:hover, .post-actions button:hover { color: var(--accent-soft); background: rgba(255,255,255,.04); }
.btn-delete-confirm:hover { color: var(--danger) !important; }
.post-content { font-size: 14px; line-height: 1.8; flex: 1; word-wrap: break-word; }
.post-content img.bbcode-img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.post-signature { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); font-style: italic; }

/* BBCODE */
.bbcode-quote { background: rgba(255,255,255,.025); border-left: 3px solid var(--accent); padding: 14px 18px; margin: 12px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quote-header { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.bbcode-code { background: rgba(0,0,0,.35); padding: 16px; border-radius: var(--radius-sm); font-size: 13px; overflow-x: auto; border: 1px solid var(--border); }
.bbcode-spoiler { margin: 12px 0; }
.spoiler-toggle { background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-soft); padding: 7px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 600; transition: all .2s var(--ease); }
.spoiler-toggle:hover { background: rgba(255,255,255,.08); border-color: var(--border-light); }
.spoiler-content { display: none; margin-top: 10px; padding: 14px; background: rgba(255,255,255,.02); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.spoiler-content.show { display: block; animation: slideUp .2s var(--ease); }

/* BBCODE TOOLBAR */
.bbcode-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 8px 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.bbcode-btn { width: 34px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text-muted); cursor: pointer; font-size: 13px; transition: all .15s var(--ease); }
.bbcode-btn:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--border); }
.toolbar-sep { display: inline-block; width: 1px; height: 20px; background: var(--border); margin: 0 5px; }
.smiley-picker-wrapper { display: inline-block; position: relative; }
.smiley-picker { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: rgba(20,20,30,.97); backdrop-filter: blur(20px); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 12px; z-index: 100; min-width: 230px; box-shadow: var(--shadow-lg); animation: fadeIn .15s var(--ease); }
.smiley-picker span { cursor: pointer; font-size: 20px; padding: 6px; text-align: center; border-radius: 8px; transition: all .15s var(--ease); }
.smiley-picker span:hover { background: rgba(255,255,255,.08); transform: scale(1.2); }
.reply-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin-top: 16px; }
.reply-box h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.reply-box h3 i { color: var(--accent-soft); font-size: 14px; }
.reply-box .bbcode-toolbar + textarea.form-control { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* CLUBS DETAIL */
.clubs-page-header { text-align: center; padding: 40px 24px; margin-bottom: 24px; background: linear-gradient(135deg, rgba(230,57,70,.06), transparent 50%, rgba(240,180,41,.04)); border-radius: var(--radius-xl); border: 1px solid var(--border); position: relative; overflow: hidden; }
.clubs-page-header::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.clubs-page-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.5px; }
.clubs-page-header h1 i { color: var(--accent); }
.clubs-page-header p { color: var(--text-muted); font-size: 14px; }
.club-detail { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; transition: all .3s var(--ease); }
.club-detail:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.club-detail-header { padding: 26px 30px; position: relative; background: linear-gradient(135deg, rgba(255,255,255,.015), transparent); border-bottom: 1px solid var(--border); }
.club-featured-bg { background: linear-gradient(135deg, rgba(230,57,70,.08), rgba(230,57,70,.02)) !important; }
.club-detail-badge { position: absolute; top: 18px; right: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .6px; box-shadow: 0 2px 8px var(--accent-glow); }
.club-detail-icon { font-size: 30px; color: var(--accent-soft); margin-bottom: 10px; }
.club-detail-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.club-detail-header h2 a { color: inherit; }
.club-detail-header h2 a:hover { color: var(--accent-soft); }
.club-detail-rating { font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.club-detail-rating span { color: var(--text-soft); font-size: 13px; }
.club-detail-body { padding: 26px 30px; }
.club-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.club-info-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.02); border: 1px solid var(--border); transition: all .2s var(--ease); }
.club-info-item:hover { background: rgba(255,255,255,.035); border-color: var(--border-light); }
.club-info-item i { font-size: 18px; color: var(--accent-soft); margin-top: 2px; flex-shrink: 0; }
.club-info-item strong { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.club-info-item div { font-size: 13px; line-height: 1.5; }
.club-detail-body > p { font-size: 14px; line-height: 1.8; color: var(--text-soft); margin-bottom: 18px; }
.club-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.highlight { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 24px; font-size: 12px; font-weight: 600; background: rgba(34,197,94,.06); color: #4ade80; border: 1px solid rgba(34,197,94,.12); transition: all .2s var(--ease); }
.highlight:hover { background: rgba(34,197,94,.1); }
.highlight i { font-size: 9px; }
.clubs-cta { text-align: center; padding: 20px; margin-top: 8px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 14px; color: var(--text-soft); }
.clubs-cta i { color: var(--info); }
.clubs-cta a { font-weight: 600; }

/* SEARCH */
.search-box { margin-bottom: 24px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.search-box h3 { margin-bottom: 14px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.search-box h3 i { color: var(--accent-soft); }
.search-input-wrap { display: flex; gap: 10px; }
.search-input-wrap .form-control { flex: 1; }
.search-result-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); transition: background .15s; }
.search-result-item:hover { background: var(--card-hover); }
.search-result-item strong { display: block; font-size: 14px; }
.search-result-item span { font-size: 12px; color: var(--text-muted); }
.search-no-results { padding: 14px; color: var(--text-muted); text-align: center; }

/* MEMBERS / PROFILE */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.member-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; gap: 14px; transition: all .25s var(--ease); }
.member-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.member-card .avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.member-card .member-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.member-card .member-info p { font-size: 12px; color: var(--text-muted); }
.member-card .member-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.member-card .member-name a { color: var(--text); }
.profile-header { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; gap: 28px; align-items: center; margin-bottom: 20px; position: relative; overflow: hidden; }
.profile-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--gold)); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-light); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.profile-info h1, .profile-info h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.3px; }
.profile-info p { font-size: 13px; color: var(--text-muted); }
.profile-stats { display: flex; gap: 24px; margin-top: 12px; }
.profile-stat { text-align: center; }
.profile-stat .num { font-size: 20px; font-weight: 800; display: block; letter-spacing: -.3px; }
.profile-stat .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.profile-stats-grid { display: flex; gap: 24px; margin-top: 12px; }
.profile-stats-grid .stat { text-align: center; }
.profile-stats-grid .stat-value { font-size: 18px; font-weight: 800; display: block; }
.profile-stats-grid .stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

/* PAGINATION */
.pagination { display: flex; align-items: center; gap: 4px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text-soft); transition: all .2s var(--ease); min-width: 38px; text-align: center; }
.pagination a:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border-light); }
.pagination .active { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); }

/* ONLINE WIDGET */
.online-widget { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; margin-top: 20px; }
.online-widget h3 { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .4px; }
.online-widget h3 i { color: var(--success); font-size: 8px; animation: pulse 2s infinite; }
.online-widget .online-users { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.online-widget .online-users a { color: var(--text-soft); font-weight: 500; }

/* FOOTER */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 36px 0 28px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-soft); font-size: 13px; padding: 4px 0; transition: all .15s var(--ease); }
.footer-col a:hover { color: var(--accent-soft); transform: translateX(3px); }
.footer-col a i { width: 18px; text-align: center; margin-right: 6px; font-size: 11px; opacity: .6; }
.footer-bottom { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

/* PRIVATE MESSAGES */
.pm-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.pm-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 13px; transition: all .15s var(--ease); }
.pm-nav a.active { background: var(--accent-glow); color: var(--accent-soft); font-weight: 600; }
.pm-nav a:hover { background: rgba(255,255,255,.03); }
.pm-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.pm-item { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--card-bg); transition: all .15s var(--ease); }
.pm-item:hover { background: var(--card-hover); }
.pm-item.unread { border-left: 3px solid var(--accent); }
.pm-subject a { font-weight: 600; color: var(--text); font-size: 14px; }
.pm-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* SETTINGS / AUTH */
.auth-container { max-width: 440px; margin: 40px auto; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.auth-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-card p { color: var(--text-muted); text-align: center; margin-bottom: 20px; font-size: 14px; }
.settings-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.settings-tabs a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all .15s var(--ease); }
.settings-tabs a:hover { background: rgba(255,255,255,.04); color: var(--text-soft); }
.settings-tabs a.active { background: var(--accent-glow); color: var(--accent-soft); font-weight: 600; }
.settings-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.settings-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ADMIN PANEL */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 0; min-height: 78vh; }
.admin-sidebar { background: var(--bg-raised); border-right: 1px solid var(--border); padding: 20px 0; }
.admin-brand { font-size: 18px; font-weight: 800; padding: 0 22px 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 22px; color: var(--text-muted); font-size: 13px; font-weight: 500; transition: all .2s var(--ease); border-left: 3px solid transparent; }
.admin-nav a:hover { background: rgba(255,255,255,.025); color: var(--text-soft); }
.admin-nav a.active { color: var(--accent-soft); background: rgba(230,57,70,.04); border-left-color: var(--accent); font-weight: 600; }
.admin-nav a i { width: 18px; text-align: center; font-size: 14px; }
.admin-content { padding: 28px 32px; }
.admin-content h1 { font-size: 22px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.3px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.admin-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; transition: all .25s var(--ease); position: relative; overflow: hidden; }
.admin-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); opacity: 0; transition: opacity .2s; }
.admin-stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.admin-stat-card:hover::before { opacity: 1; }
.stat-icon { font-size: 26px; color: var(--accent-soft); margin-bottom: 10px; }
.stat-number { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.012); }
.admin-table .actions a, .admin-table .actions button { margin-right: 6px; }
.btn-del { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 12px; font-family: var(--font); padding: 2px 6px; transition: opacity .15s; border-radius: 4px; }
.btn-del:hover { opacity: .7; background: rgba(239,68,68,.06); }
.btn-icon { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 6px; font-size: 13px; transition: color .15s; border-radius: 4px; }
.btn-icon:hover { color: var(--accent-soft); background: rgba(255,255,255,.04); }
.role-color-preview { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 5px; border: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .clubs-grid { grid-template-columns: repeat(2, 1fr); }
    .club-info-grid { grid-template-columns: 1fr 1fr; }
    .forum-row { grid-template-columns: 42px 1fr 60px; }
    .forum-row .forum-stat:nth-child(4), .forum-row .forum-last-post { display: none; }
    .thread-item { grid-template-columns: 1fr 50px 50px; }
    .thread-item .thread-icon, .thread-item .thread-last-post { display: none; }
    .thread-row { grid-template-columns: 1fr 50px 50px; }
    .thread-row .thread-status-icon, .thread-row .thread-last-reply { display: none; }
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { flex-direction: row; padding: 14px 18px; border-right: none; border-bottom: 1px solid var(--border); gap: 14px; }
    .post-avatar { width: 48px; height: 48px; margin-bottom: 0; }
    .post-user-stats { display: none; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: flex; overflow-x: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-nav { display: flex; gap: 4px; }
    .admin-nav a { padding: 8px 12px; border-left: none !important; white-space: nowrap; font-size: 12px; border-radius: var(--radius-sm); }
    .admin-brand { display: none; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .profile-header { flex-direction: column; text-align: center; }
    .pm-layout { grid-template-columns: 1fr; }
    .search-input-wrap { flex-direction: column; }
}
@media (max-width: 600px) {
    .clubs-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.show { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(14,14,20,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 8px; z-index: 999; }
    .mobile-toggle { display: block; }
    .header .container { padding: 0 14px; }
    .clubs-showcase { padding: 18px; border-radius: var(--radius-md); }
    .category-header { padding: 12px 16px; }
    .forum-row { padding: 12px 16px; }
    .club-info-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 18px 16px; }
    .thread-header h1, .forum-header h1 { font-size: 18px; }
    .profile-stats-grid { flex-wrap: wrap; gap: 14px; }
    .auth-container { margin: 20px auto; }
    .auth-card { padding: 24px; }
}
