/* ═══════════════════════════════════════════════════
   TheRPG Forum — Premium Design v3.0
   Barwy: pomarańczowo-ogniste na ciemnym tle
   ═══════════════════════════════════════════════════ */

:root {
    --bg: #0a0a0b;
    --bg2: #131316;
    --bg3: #1c1c21;
    --bg4: #26262d;
    --bg5: #303038;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,171,72,0.25);
    --accent: #ffab48;
    --accent2: #fc8c5b;
    --accent3: #ff7043;
    --accent-glow: rgba(255,171,72,0.15);
    --accent-glow-strong: rgba(255,171,72,0.35);
    --text: #eeeef0;
    --text-muted: rgba(255,255,255,0.45);
    --text-secondary: rgba(255,255,255,0.7);
    --danger: #ef4444;
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 24px rgba(255,171,72,0.08);
    --shadow-glow-strong: 0 0 40px rgba(255,171,72,0.15);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.925rem;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(255,171,72,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(252,140,91,0.03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(255,112,67,0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg5); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); text-decoration: none; }
::selection { background: rgba(255,171,72,0.3); color: #fff; }
img { max-width: 100%; }

/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */
.navbar {
    background: rgba(13,13,15,0.8);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 3.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255,171,72,0.15) 30%, rgba(252,140,91,0.2) 50%, rgba(255,171,72,0.15) 70%, transparent 95%);
}
.navbar .logo {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.navbar .logo img {
    height: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(255,171,72,0.35));
    transition: filter var(--transition);
}
.navbar .logo:hover img { filter: drop-shadow(0 0 16px rgba(255,171,72,0.55)); }
.gradient-text {
    background: linear-gradient(135deg, #ffab48 0%, #ffb762 25%, #fc8c5b 50%, #dc604f 75%, #ffab48 100%);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientAnim 4s ease infinite;
    filter: drop-shadow(0 0 10px rgba(255,171,72,0.15));
}
@keyframes gradientAnim {
    0%   { background-position: 0% 50% }
    50%  { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}
.navbar .nav-links { display: flex; gap: 0.15rem; margin-left: auto; align-items: center; }
.navbar .nav-links a {
    color: var(--text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}
.navbar .nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 1px;
    transition: all var(--transition);
    transform: translateX(-50%);
}
.navbar .nav-links a:hover::after { width: 50%; }
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    margin-left: auto;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,171,72,0.06); }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.5rem 1.15rem; border-radius: var(--radius); border: none; cursor: pointer;
    font-size: 0.875rem; font-weight: 600; transition: all var(--transition);
    text-decoration: none; position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
    background-size: 200% 200%; color: #0a0a0b;
    box-shadow: 0 2px 12px rgba(255,171,72,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    animation: btnGradient 4s ease infinite;
}
@keyframes btnGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(255,171,72,0.4); text-decoration: none; color: #0a0a0b; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { border-color: rgba(255,171,72,0.35); color: var(--accent); background: rgba(255,171,72,0.06); text-decoration: none; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 2px 10px rgba(239,68,68,0.25); }
.btn-danger:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.35); text-decoration: none; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════
   LAYOUT & CARDS
   ═══════════════════════════════════════════════════ */
.container { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.25rem; position: relative; z-index: 1; }

.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color var(--transition); }
.card:hover { border-color: rgba(255,255,255,0.08); }
.card-header {
    background: linear-gradient(180deg, rgba(28,28,33,0.8) 0%, rgba(19,19,22,0.6) 100%);
    border-bottom: 1px solid var(--border); padding: 0.85rem 1.25rem;
    font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; position: relative;
}
.card-header::after {
    content: ''; position: absolute; bottom: 0; left: 1.25rem; right: 1.25rem; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,171,72,0.08), transparent);
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(255,171,72,0.08) 0%, rgba(252,140,91,0.05) 40%, rgba(19,19,22,0.9) 100%);
    border: 1px solid rgba(255,171,72,0.1); border-radius: var(--radius-xl);
    padding: 2rem 2.5rem; margin-bottom: 1.75rem; overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(255,171,72,0.06) 0%, transparent 70%); pointer-events: none;
}
.hero-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.4rem; position: relative; }
.hero-subtitle { color: var(--text-muted); font-size: 0.9rem; position: relative; max-width: 500px; }
.hero-actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; position: relative; }

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
    margin-bottom: 1.75rem; font-size: 0.85rem; color: var(--text-muted);
    overflow: hidden; box-shadow: var(--shadow-sm); position: relative;
}
.stats-bar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent2), var(--accent));
    background-size: 200%; animation: gradientAnim 4s ease infinite; opacity: 0.7;
}
.stats-bar > span {
    padding: 1rem; text-align: center; border-right: 1px solid var(--border);
    transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.stats-bar > span:last-child { border-right: none; }
.stats-bar > span:hover { background: rgba(255,171,72,0.03); }
.stats-bar strong { color: var(--accent); font-size: 1.15rem; font-weight: 700; display: block; }

/* ═══════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════ */
.category-group { margin-bottom: 1.75rem; }
.category-group-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-muted); padding: 0.6rem 0; margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.5rem;
}
.category-group-title::before {
    content: ''; width: 3px; height: 1.1em;
    background: linear-gradient(180deg, var(--accent), var(--accent3));
    border-radius: 2px; box-shadow: 0 0 8px rgba(255,171,72,0.2);
}
.category-row {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border); transition: all var(--transition); cursor: pointer; position: relative;
}
.category-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 0 2px 2px 0; opacity: 0; transition: opacity var(--transition);
}
.category-row:last-child { border-bottom: none; }
.category-row:hover { background: rgba(255,171,72,0.025); }
.category-row:hover::before { opacity: 1; }
.category-icon {
    font-size: 1.4rem; width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,171,72,0.1), rgba(252,140,91,0.06));
    border: 1px solid rgba(255,171,72,0.08); border-radius: var(--radius-md); flex-shrink: 0;
    transition: all var(--transition);
}
.category-row:hover .category-icon {
    background: linear-gradient(135deg, rgba(255,171,72,0.16), rgba(252,140,91,0.1));
    border-color: rgba(255,171,72,0.2); box-shadow: 0 0 16px rgba(255,171,72,0.1); transform: scale(1.05);
}
.category-info { flex: 1; min-width: 0; }
.category-info .name { font-weight: 600; font-size: 0.95rem; }
.category-row:hover .category-info .name a { color: var(--accent) !important; }
.category-info .desc { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; line-height: 1.45; }
.category-stats { text-align: right; color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; min-width: 8rem; }
.category-stats span { display: block; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   THREADS
   ═══════════════════════════════════════════════════ */
.thread-row {
    display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border); transition: all var(--transition); position: relative;
}
.thread-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    opacity: 0; transition: opacity var(--transition); border-radius: 0 1px 1px 0;
}
.thread-row:last-child { border-bottom: none; }
.thread-row:hover { background: rgba(255,255,255,0.015); }
.thread-row:hover::before { opacity: 1; }
.thread-icon {
    font-size: 1.15rem; flex-shrink: 0; width: 2.2rem; height: 2.2rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border-radius: var(--radius); transition: all var(--transition);
}
.thread-row:hover .thread-icon { background: rgba(255,171,72,0.06); }
.thread-info { flex: 1; min-width: 0; }
.thread-info .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; }
.thread-info .title a { color: var(--text); transition: color var(--transition); }
.thread-info .title a:hover { color: var(--accent); text-decoration: none; }
.thread-info .meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.2rem; }
.thread-info .meta strong { color: var(--text-secondary); font-weight: 600; }
.thread-stats { text-align: right; color: var(--text-muted); font-size: 0.78rem; flex-shrink: 0; min-width: 6rem; }
.thread-stats span { display: block; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   BADGES — RCON ciemny czerwony
   ═══════════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; border-radius: 2rem;
    font-size: 0.68rem; font-weight: 700; margin-right: 0.25rem; white-space: nowrap; border: 1px solid transparent;
}
.badge-pinned { background: rgba(255,171,72,0.12); color: var(--accent); border-color: rgba(255,171,72,0.2); }
.badge-locked { background: rgba(239,68,68,0.12); color: var(--danger); border-color: rgba(239,68,68,0.2); }
.badge-admin { background: rgba(239,68,68,0.12); color: #ff6b6b; border-color: rgba(239,68,68,0.2); }
.badge-mod { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.badge-user { background: rgba(255,255,255,0.04); color: var(--text-muted); border-color: rgba(255,255,255,0.06); }
.badge-zarzad { background: rgba(139,92,246,0.12); color: #a78bfa; border-color: rgba(139,92,246,0.2); }
.badge-root { background: rgba(139,0,0,0.2); color: #8b0000; font-weight: 800; border-color: rgba(139,0,0,0.35); text-shadow: 0 0 8px rgba(139,0,0,0.3); }
.badge-support { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.badge-lider-safd { background: rgba(255,100,0,0.12); color: #ff6400; border-color: rgba(255,100,0,0.2); }
.badge-lider-sapd { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.badge-lider-tsa { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.badge-lider-samd { background: rgba(236,72,153,0.12); color: #f472b6; border-color: rgba(236,72,153,0.2); }
.badge-lider-sara { background: rgba(255,171,72,0.12); color: #ffab48; border-color: rgba(255,171,72,0.2); }
.badge-lider-army { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.badge-starszy-admin { background: rgba(185,28,28,0.12); color: #f87171; border-color: rgba(185,28,28,0.2); }
.badge-zastepca-tsa { background: rgba(245,158,11,0.08); color: #fbbf24; border-color: rgba(245,158,11,0.15); }
.badge-zastepca-safd { background: rgba(239,68,68,0.08); color: #f87171; border-color: rgba(239,68,68,0.15); }
.badge-zastepca-sapd { background: rgba(59,130,246,0.08); color: #60a5fa; border-color: rgba(59,130,246,0.15); }
.badge-zastepca-samd { background: rgba(236,72,153,0.08); color: #f472b6; border-color: rgba(236,72,153,0.15); }
.badge-zastepca-sara { background: rgba(251,146,60,0.08); color: #fb923c; border-color: rgba(251,146,60,0.15); }
.badge-zastepca-army { background: rgba(34,197,94,0.08); color: #4ade80; border-color: rgba(34,197,94,0.15); }
.badge-ckf { background: rgba(139,92,246,0.12); color: #a78bfa; border-color: rgba(139,92,246,0.2); }
.badge-zastepca-ckf { background: rgba(139,92,246,0.08); color: #a78bfa; border-color: rgba(139,92,246,0.15); }

/* ═══════════════════════════════════════════════════
   POSTS
   ═══════════════════════════════════════════════════ */
.post { display: flex; gap: 1.25rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--border); transition: background var(--transition); position: relative; }
.post:last-child { border-bottom: none; }
.post:hover { background: rgba(255,255,255,0.008); }
.post:target { background: rgba(255,171,72,0.03); box-shadow: inset 3px 0 0 var(--accent); }
.post-author {
    width: 10.5rem; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0.75rem 0.5rem; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
    border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.03); transition: all var(--transition);
}
.post-author:hover { border-color: rgba(255,171,72,0.08); }
.post-author .avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--bg3); object-fit: cover; border: 2px solid rgba(255,255,255,0.06); transition: all var(--transition); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.post-author:hover .avatar { border-color: rgba(255,171,72,0.3); box-shadow: 0 0 20px rgba(255,171,72,0.12); }
.post-author .username { font-weight: 600; font-size: 0.9rem; }
.post-author .username a { color: var(--text); }
.post-author .username a:hover { color: var(--accent); }
.post-author .role-badge { font-size: 0.7rem; }
.post-author .post-count { color: var(--text-muted); font-size: 0.73rem; }
.post-body { flex: 1; min-width: 0; }
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-muted); font-size: 0.78rem; }
.post-content { line-height: 1.8; color: rgba(255,255,255,0.88); word-break: break-word; font-size: 0.92rem; }
.post-actions { margin-top: 0.85rem; display: flex; gap: 0.5rem; }

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; margin-bottom: 0.45rem; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.form-control { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.65rem 0.9rem; color: var(--text); font-size: 0.9rem; transition: all var(--transition); font-family: inherit; }
.form-control:focus { outline: none; border-color: rgba(255,171,72,0.5); box-shadow: 0 0 0 3px rgba(255,171,72,0.08), 0 0 20px rgba(255,171,72,0.05); background: rgba(28,28,33,0.9); }
.form-control::placeholder { color: rgba(255,255,255,0.25); }
textarea.form-control { resize: vertical; min-height: 8rem; line-height: 1.65; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem; cursor: pointer; }

/* ═══════════════════════════════════════════════════
   BREADCRUMB, PAGINATION, ALERTS, BANNER, ONLINE, ACTIVITY, MENTION
   ═══════════════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.25rem; padding: 0.55rem 1rem; background: rgba(255,255,255,0.015); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.03); }
.breadcrumb a { color: var(--text-muted); } .breadcrumb a:hover { color: var(--accent); } .breadcrumb .sep { opacity: 0.25; font-size: 0.7rem; }

.pagination { display: flex; gap: 0.3rem; justify-content: center; margin-top: 1.25rem; }
.pagination a, .pagination span { padding: 0.4rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.82rem; transition: all var(--transition); min-width: 2.1rem; text-align: center; }
.pagination a:hover { border-color: rgba(255,171,72,0.3); color: var(--accent); text-decoration: none; background: rgba(255,171,72,0.05); }
.pagination .active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0a0a0b; border-color: var(--accent); font-weight: 700; box-shadow: 0 2px 10px rgba(255,171,72,0.3); }

.alert { padding: 0.8rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; animation: alertSlideIn 0.35s ease-out; }
@keyframes alertSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15); color: #86efac; }

.banner-bar { display: flex; justify-content: center; align-items: center; gap: 0.75rem; background: linear-gradient(90deg, #5865f2, #4752c4, #5865f2); background-size: 200%; animation: bannerBg 6s ease infinite; color: #fff; padding: 0.6rem 1rem; text-decoration: none; font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); transition: all var(--transition); position: relative; overflow: hidden; }
@keyframes bannerBg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.banner-bar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); transform: translateX(-100%); animation: bannerShimmer 4s ease-in-out infinite; }
@keyframes bannerShimmer { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
.banner-bar:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }

.online-section { margin-top: 1.75rem; }
.activity-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,0.015); }
.activity-avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.06); }
.activity-content { flex: 1; min-width: 0; }
.activity-content .activity-text { font-size: 0.84rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-content .activity-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }

.online-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 6px rgba(34,197,94,0.5); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.4); } 50% { box-shadow: 0 0 14px rgba(34,197,94,0.7); } }

.mention { color: var(--accent); font-weight: 600; text-decoration: none; background: rgba(255,171,72,0.06); padding: 0.1rem 0.35rem; border-radius: 0.25rem; border: 1px solid rgba(255,171,72,0.1); transition: all var(--transition); }
.mention:hover { background: rgba(255,171,72,0.12); border-color: rgba(255,171,72,0.2); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   ADMIN, PROFILE, AUTH, PLAYERS, NOTIFICATIONS, FOOTER, BACK-TO-TOP
   ═══════════════════════════════════════════════════ */
.admin-grid { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: start; }
.admin-sidebar .item { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; border-radius: var(--radius); color: var(--text-muted); cursor: pointer; transition: all var(--transition); text-decoration: none; font-size: 0.88rem; }
.admin-sidebar .item:hover { background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; }
.admin-sidebar .item.active { background: rgba(255,171,72,0.06); color: var(--accent); border-left: 2px solid var(--accent); }

.profile-grid { display: grid; grid-template-columns: 17rem 1fr; gap: 1.5rem; align-items: start; }
.profile-card { position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5rem; background: linear-gradient(135deg, rgba(255,171,72,0.18), rgba(252,140,91,0.12), rgba(255,112,67,0.08)); z-index: 0; }
.profile-card > * { position: relative; z-index: 1; }
.stat-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem; text-align: center; transition: all var(--transition); }
.stat-box:hover { border-color: rgba(255,171,72,0.15); }
.stat-box .stat-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); display: block; }
.stat-box .stat-label { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.1rem; }

.auth-container { max-width: 420px; margin: 3rem auto 0; }
.auth-card { 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(--accent2), var(--accent3)); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 0.85rem; text-align: center; font-weight: 600; font-size: 0.9rem; transition: all var(--transition); text-decoration: none; position: relative; }
.auth-tab:hover { text-decoration: none; }
.auth-tab.active { color: var(--accent); }
.auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 1px; }
.auth-tab:not(.active) { color: var(--text-muted); }

.player-card { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--border); transition: all var(--transition); position: relative; }
.player-card:last-child { border-bottom: none; }
.player-card:hover { background: rgba(255,171,72,0.02); }
.player-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0; transition: opacity var(--transition); }
.player-card:hover::before { opacity: 1; }
.player-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.06); transition: all var(--transition); }
.player-card:hover .player-avatar { border-color: rgba(255,171,72,0.25); }
.player-info { flex: 1; min-width: 0; }
.player-info .player-name { font-weight: 600; font-size: 0.92rem; }
.player-info .player-name a { color: var(--text); } .player-info .player-name a:hover { color: var(--accent); }
.player-info .player-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.1rem; }
.player-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

.notif-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.015); }
.notif-icon { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,171,72,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.notif-content { flex: 1; }
.notif-content a { color: var(--text); }
.notif-content .notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

.notif-badge { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0a0a0b; border-radius: 50%; padding: 0 5px; font-size: 0.62rem; font-weight: 700; position: absolute; top: -4px; right: -8px; min-width: 0.95rem; text-align: center; box-shadow: 0 0 8px rgba(255,171,72,0.4); animation: pulse 2s ease-in-out infinite; }

footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 3rem; position: relative; background: linear-gradient(180deg, rgba(10,10,11,0.3), rgba(10,10,11,0.8)); }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 10%, rgba(255,171,72,0.12) 50%, transparent 90%); }
.footer-content { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; }
.footer-divider { opacity: 0.15; font-size: 0.9rem; }

.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0a0a0b; border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(255,171,72,0.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 99; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 6px 24px rgba(255,171,72,0.4); transform: translateY(-2px); }

.mention-dropdown { position: fixed; background: var(--bg2); border: 1px solid rgba(255,171,72,0.25); border-radius: var(--radius-md); z-index: 9999; min-width: 220px; max-height: 220px; overflow-y: auto; box-shadow: var(--shadow-lg), 0 0 24px rgba(255,171,72,0.05); }
.mention-dropdown div { padding: 0.5rem 1rem; cursor: pointer; color: var(--text); font-size: 0.88rem; display: flex; align-items: center; gap: 0.4rem; transition: all var(--transition); }
.mention-dropdown div:hover, .mention-dropdown div.active { background: rgba(255,171,72,0.08); color: var(--accent); }
.mention-dropdown div::before { content: '@'; color: var(--accent); font-weight: 700; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.container > * { animation: fadeInUp 0.4s ease-out both; }
.container > *:nth-child(2) { animation-delay: 0.05s; }
.container > *:nth-child(3) { animation-delay: 0.1s; }
.container > *:nth-child(4) { animation-delay: 0.15s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; height: auto; min-height: 3.5rem; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .nav-toggle { display: block; }
    .navbar .nav-links { display: none; width: 100%; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0; border-top: 1px solid var(--border); }
    .navbar .nav-links.open { display: flex; }
    .navbar .nav-links a { width: 100%; padding: 0.6rem 0.8rem; font-size: 0.88rem; border-radius: var(--radius); }
    .navbar .nav-links a::after { display: none; }
    .container { padding: 1rem 0.75rem; }
    .hero-section { padding: 1.5rem; border-radius: var(--radius-lg); }
    .hero-title { font-size: 1.25rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stats-bar > span { font-size: 0.8rem; padding: 0.75rem 0.6rem; }
    .post { flex-direction: column; padding: 1rem; }
    .post-author { width: 100%; flex-direction: row; text-align: left; justify-content: flex-start; gap: 0.6rem; padding: 0.5rem; }
    .post-author .avatar { width: 2.5rem; height: 2.5rem; }
    .admin-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .category-row { flex-wrap: wrap; padding: 0.8rem; }
    .category-stats { width: 100%; text-align: left; margin-top: 0.4rem; display: flex; gap: 1rem; }
    .category-stats span { display: inline; }
    .thread-row { flex-wrap: wrap; }
    .thread-stats { width: 100%; text-align: left; margin-top: 0.3rem; display: flex; gap: 1rem; }
    .thread-stats span { display: inline; }
    .breadcrumb { font-size: 0.78rem; padding: 0.45rem 0.75rem; }
    .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; }
    .footer-content { gap: 0.75rem; }
    .mention-dropdown { left: 0.75rem !important; right: 0.75rem !important; width: auto !important; max-width: calc(100vw - 1.5rem); }
}
@media (max-width: 480px) {
    .container { padding: 0.75rem 0.5rem; }
    .navbar .logo { font-size: 1.2rem; }
    .navbar .logo img { height: 1.8rem; }
    .hero-section { padding: 1.25rem; }
    .hero-title { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    .stats-bar { grid-template-columns: 1fr; }
    .stats-bar > span { border-right: none; border-bottom: 1px solid var(--border); }
    .stats-bar > span:last-child { border-bottom: none; }
    .category-icon { width: 2.2rem; height: 2.2rem; font-size: 1.15rem; }
    .post-meta { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    h2 { font-size: 1.05rem; }
    .player-card { flex-wrap: wrap; }
    .player-actions { width: 100%; margin-top: 0.3rem; }
}

/* ═══════════════════════════════════════════════════
   PREMIUM PAGE
   ═══════════════════════════════════════════════════ */

/* Pricing cards — hover effects */
.premium-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.premium-pricing-card {
    text-align: center;
    padding: 1.5rem 1rem;
    cursor: default;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.premium-pricing-card:hover {
    border-color: rgba(255,171,72,0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 24px rgba(255,171,72,0.08);
}

/* Status card after payment return */
.premium-status-card {
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

/* MTA login form section */
.premium-mta-section {
    margin-bottom: 1.75rem;
}

.premium-mta-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Terms / regulamin section */
.premium-terms h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.premium-terms ol {
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.premium-terms ol:last-child {
    margin-bottom: 0;
}

/* Payment methods display */
.premium-payment-methods {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 0.9rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.premium-payment-methods span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.premium-payment-methods .hotpay-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Total price display */
.premium-total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    padding: 0.65rem 0.9rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: color var(--transition);
}

/* Full-width submit buttons on premium page */
.premium-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════
   PREMIUM PAGE — RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .premium-pricing-grid {
        grid-template-columns: 1fr;
    }

    .premium-pricing-card:hover {
        transform: none;
    }
}
