/* ==========================================================================
   GLOBAL RESET / VARIABLES / BASE THEME
   ========================================================================== */

:root {
    --bg-dark: #050509;
    --bg-darker: #030307;

    --glass-bg: rgba(10,10,18,0.55);
    --glass-bg-strong: rgba(16,16,25,0.7);
    --glass-highlight: rgba(255,255,255,0.13);

    --primary-red: #e11d48;
    --primary-pink: #f472b6;

    --border-soft: rgba(255,255,255,0.14);
    --border-strong: rgba(255,255,255,0.32);

    --text-light: #ffffff;
    --text-muted: rgba(255,255,255,0.68);
    --text-faint: rgba(255,255,255,0.4);

    --glow-red: 0 0 22px rgba(255, 45, 90, 0.65);
    --glow-pink: 0 0 25px rgba(244,114,182,0.75);

    --transition-fast: .16s ease-out;
    --transition-med: .22s ease;
    --transition-slow: .3s cubic-bezier(.2,.8,.2,1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top, #180212, #050507 50%, #020205 100%);
    color: var(--text-light);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f472b6, #e11d48);
    border-radius: 999px;
}
body::-webkit-scrollbar-track {
    background: transparent;
}

/* Links */

a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover {
    color: #fff;
}

/* Images */

img {
    max-width: 100%;
    display: block;
}

/* Utility headings reset */

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.page-main {
    max-width: 1200px;
    margin: 1.5rem auto 3.5rem auto;
    padding: 0 1rem;
    animation: fadeInMain .35s ease;
}

@keyframes fadeInMain {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   HEADER / TOP NAVIGATION
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(
        to bottom right,
        rgba(10,10,18,.92),
        rgba(5,5,10,.95)
    );
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 20px rgba(0,0,0,.6);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #f472b6, #e11d48);
    box-shadow: var(--glow-pink);
    animation: brandPulse 2.7s infinite ease-in-out;
}

@keyframes brandPulse {
    0%   { box-shadow: 0 0 10px rgba(244,114,182,.4); }
    50%  { box-shadow: 0 0 28px rgba(244,114,182,.9); }
    100% { box-shadow: 0 0 10px rgba(244,114,182,.4); }
}

/* Nav */

.nav-links {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.header-user {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* ==========================================================================
   BUTTONS / PILLS
   ========================================================================== */

.pill,
.btn-primary,
.btn-ghost,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .8rem;
    border-radius: .8rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(145deg, rgba(16,16,25,.88), rgba(5,5,12,.96));
    color: #fff;
    font-size: .9rem;
    cursor: pointer;
    transition: background var(--transition-slow),
                border-color var(--transition-slow),
                transform var(--transition-slow),
                box-shadow var(--transition-slow),
                color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.pill::after,
.btn-primary::after,
.btn-ghost::after,
.btn-danger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,.25), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.pill:hover,
.btn-ghost:hover {
    border-color: rgba(244,114,182,.7);
    transform: translateY(-1px);
}
.pill:hover::after,
.btn-primary:hover::after,
.btn-ghost:hover::after,
.btn-danger:hover::after {
    opacity: .6;
}

/* Primary button */

.btn-primary {
    background: linear-gradient(145deg, #e11d48, #f472b6);
    border-color: rgba(255,255,255,.25);
    box-shadow: var(--glow-pink);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Ghost button */

.btn-ghost {
    background: rgba(16,16,25,.85);
}

/* Danger button */

.btn-danger {
    background: linear-gradient(145deg, #b91c1c, #ef4444);
    border-color: rgba(252,165,165,.8);
    box-shadow: 0 0 18px rgba(248,113,113,.7);
}

/* Disabled state */

button[disabled],
.btn-primary[disabled],
.btn-ghost[disabled],
.btn-danger[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 .3rem;
    border-radius: 999px;
    font-size: .75rem;
    border: 1px solid rgba(248,113,113,.7);
    background: rgba(190,24,93,.35);
    box-shadow: var(--glow-red);
}

/* Premium badge */

.badge-soft-premium {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 99px;
    border: 1px solid rgba(244,114,182,0.9);
    background: radial-gradient(circle at top, #f472b6, #e11d48);
    color: #fff;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .06em;
    box-shadow: var(--glow-pink);
}

/* Other role badges */

.badge-role-admin {
    padding: .15rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(248,250,252,.5);
    background: rgba(30,64,175,.85);
    font-size: .75rem;
}

/* DM badge */

#dm-badge {
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .7rem;
}

/* ==========================================================================
   CARDS / GLASS PANELS
   ========================================================================== */

.card {
    background: linear-gradient(180deg, var(--glass-bg), var(--glass-bg-strong));
    border: 1px solid var(--glass-highlight);
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow:
        0 0 18px rgba(0,0,0,.5),
        inset 0 0 25px rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-med), box-shadow var(--transition-med), transform var(--transition-med);
}

.card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(244,114,182,.12), transparent 60%);
    opacity: .7;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(244,114,182,.4);
    box-shadow: 0 0 24px rgba(244,114,182,.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: .55rem .45rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}

th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
}

tr:hover td {
    background: rgba(244,114,182,.08);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    color: var(--text-muted);
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
textarea,
select {
    width: 100%;
    padding: .5rem .6rem;
    border-radius: .6rem;
    border: 1px solid var(--border-soft);
    background: #0b0b12;
    color: #fff;
    font-size: .9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(244,114,182,.7);
    box-shadow: var(--glow-pink);
    background: #05050b;
}

/* Inline form groups */

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.form-col {
    flex: 1 1 180px;
}

/* ==========================================================================
   FLASH / ALERTS
   ========================================================================== */

.flash,
.alert {
    padding: .6rem .8rem;
    border-radius: .8rem;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,.06);
    margin-bottom: .6rem;
    font-size: .9rem;
}

.flash-success,
.alert-success {
    background: rgba(16,185,129,.2);
    border-color: rgba(16,185,129,.55);
}

.flash-error,
.alert-error,
.alert.error {
    background: rgba(239,68,68,.2);
    border-color: rgba(239,68,68,.6);
}

.flash-info,
.alert-info {
    background: rgba(59,130,246,.2);
    border-color: rgba(59,130,246,.6);
}

/* ==========================================================================
   AVATARS / PROFILE
   ========================================================================== */

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(244,114,182,.5);
}

.avatar-md {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(244,114,182,.7);
}

.avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(244,114,182,.8);
}

/* Profile header block */

.profile-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

/* ==========================================================================
   FORUM – SECTION, FILTERS, CARDS (2-COLUMN THREAD GRID)
   ========================================================================== */

.forum-section {
    margin-top: .5rem;
}

/* filters */

.forum-filters-card {
    margin-bottom: 1.1rem;
}

.forum-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .7rem;
}
.forum-filters-header h1 {
    margin: 0;
}

.forum-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.forum-filter-item {
    min-width: 180px;
    flex: 0 0 auto;
}
.forum-filter-grow {
    flex: 1 1 240px;
}

/* 2-column grid */

.forum-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.4rem !important;
    width: 100%;
}

/* thread card */

.forum-card {
    background: linear-gradient(145deg, rgba(14,14,18,.89), rgba(8,8,14,.96));
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.16);
    padding: 1rem 1.2rem;
    text-decoration: none !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 0 16px rgba(0,0,0,.5);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow),
                border-color var(--transition-slow),
                box-shadow var(--transition-slow),
                background var(--transition-slow);
}

.forum-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(244,114,182,.18), transparent 60%);
    opacity: .5;
    pointer-events: none;
}

.forum-card:hover {
    border-color: rgba(244,114,182,.7);
    background: linear-gradient(145deg, rgba(40,10,28,.96), rgba(18,8,26,.98));
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 28px rgba(244,114,182,.65);
}

/* sticky / locked states */

.forum-card.sticky {
    box-shadow: 0 0 30px rgba(244,114,182,.8);
}

.forum-card.locked {
    opacity: .93;
}

/* Top row (prefix + category + icons) */

.forum-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

/* Prefix badge */

.prefix-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .22rem .6rem;
    border-radius: .8rem;
    background: rgba(244,114,182,.25);
    border: 1px solid rgba(244,114,182,.7);
    font-size: .8rem;
    box-shadow: 0 0 18px rgba(244,114,182,.75);
    margin-right: .35rem;
}

/* Category badge */

.category-badge {
    font-size: .8rem;
    color: rgba(255,255,255,.78);
}

/* Icons (sticky / locked) */

.thread-icons {
    display: flex;
    gap: .35rem;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}

/* thread title */

.thread-title,
.forum-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

/* author row */

.thread-author {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* footer stats */

.thread-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .4rem;
    font-size: .8rem;
}

.reply-stats {
    display: flex;
    gap: .35rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .22rem .5rem;
    border-radius: .7rem;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .8rem;
}

/* last reply text */

.last-reply {
    font-size: .78rem;
}

/* small meta text */

.thread-meta-small {
    font-size: .75rem;
    opacity: .75;
}

/* ==========================================================================
   THREAD PAGE – BODY
   ========================================================================== */

.thread-body {
    margin-top: 1.2rem;
    line-height: 1.5;
    font-size: .95rem;
    color: var(--text-light);
}

.thread-body p {
    margin-bottom: .7rem;
}

/* ==========================================================================
   MEMBERSHIP GRID / CARDS
   ========================================================================== */

.membership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: .6rem;
}

.membership-card {
    background: linear-gradient(145deg, rgba(14,14,18,.89), rgba(8,8,14,.96));
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.14);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 0 16px rgba(0,0,0,.5);
    transition: var(--transition-slow);
}

.membership-card:hover {
    border-color: rgba(244,114,182,.7);
    background: linear-gradient(145deg, rgba(40,10,28,.96), rgba(18,8,26,.98));
    transform: translateY(-3px);
    box-shadow: 0 0 26px rgba(244,114,182,.6);
}

.membership-price {
    font-size: 1.4rem;
    font-weight: 800;
}

.membership-interval {
    font-size: .85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MESSAGES / DM LAYOUT
   ========================================================================== */

.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}

.message-thread {
    padding: .55rem;
    border-radius: .8rem;
    display: flex;
    gap: .6rem;
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    color: #fff;
    transition: var(--transition-slow);
    background: rgba(8,8,14,.8);
}

.message-thread:hover,
.message-thread.active {
    background: rgba(244,114,182,.2);
    border-color: rgba(244,114,182,.55);
    transform: translateX(2px);
    box-shadow: 0 0 20px rgba(244,114,182,.6);
}

/* chat area */

.chat-box {
    height: 420px;
    overflow-y: auto;
    border-radius: .9rem;
    padding: .9rem;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
}

/* chat rows */

.chat-row {
    margin-bottom: .4rem;
    display: flex;
    flex-direction: column;
}
.chat-row.me {
    align-items: flex-end;
}

/* bubbles */

.bubble {
    padding: .45rem .7rem;
    border-radius: .8rem;
    border: 1px solid rgba(244,114,182,.4);
    max-width: 70%;
    background: rgba(50,15,35,.82);
}
.chat-row.me .bubble {
    background: rgba(190,18,60,.9);
    box-shadow: var(--glow-red);
}

.chat-timestamp {
    opacity: .6;
    font-size: .75rem;
    margin-top: .15rem;
}

/* typing indicator */

.typing-indicator {
    display: inline-block;
    padding: .2rem .4rem;
    border-radius: .8rem;
    background: rgba(255,255,255,.12);
    font-size: .75rem;
}

/* ==========================================================================
   DOWNLOADS / VIDEOS GRIDS
   ========================================================================== */

.download-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.download-card,
.video-card {
    background: linear-gradient(145deg, rgba(10,10,16,.9), rgba(5,5,10,.96));
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,.16);
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: var(--transition-slow);
}

.download-card:hover,
.video-card:hover {
    border-color: rgba(244,114,182,.6);
    box-shadow: 0 0 24px rgba(244,114,182,.5);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 1rem 1.8rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    background: rgba(0,0,0,.4);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: .4rem; }
.gap-md { gap: .75rem; }
.gap-lg { gap: 1.2rem; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: .6rem;
    }
}

@media (max-width: 860px) {
    .forum-grid {
        grid-template-columns: 1fr !important;
    }

    .membership-grid {
        grid-template-columns: 1fr;
    }

    .forum-filters-form {
        flex-direction: column;
    }

    .forum-filter-item,
    .forum-filter-grow {
        flex: 1 1 100%;
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-main {
        padding: 0 .7rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================
   FINAL — FORCE THREADS INTO 2-COLUMN GRID
   ========================================================== */

/* Grid Container */
.threads-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:1.5rem !important;
    width:100%;
}

/* ==========================================================
   THREADS — 2-COLUMN GRID + CARD DESIGN (FINAL)
   ========================================================== */

/* Grid wrapper */
.threads-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:1.4rem !important;
    width:100%;
    box-sizing:border-box;
}

/* Card base */
.thread-card{
    display:block !important;
    text-decoration:none !important;
    color:#fff !important;

    background:linear-gradient(
        145deg,
        rgba(20,10,20,.88),
        rgba(8,8,14,.95)
    ) !important;

    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:14px !important;

    padding:18px 20px !important;
    box-sizing:border-box !important;

    box-shadow:0 0 22px rgba(0,0,0,.45) !important;

    transition:all .28s ease !important;
    position:relative;
    overflow:hidden;
}

/* Subtle glass highlight */
.thread-card::before{
    content:'';
    position:absolute;
    inset:-40%;
    background:radial-gradient(circle at top left,
        rgba(244,114,182,.22),
        transparent 60%
    );
    opacity:.55;
    pointer-events:none;
}

/* Hover glow */
.thread-card:hover{
    background:linear-gradient(
        145deg,
        rgba(40,10,28,.96),
        rgba(16,10,24,.98)
    ) !important;
    border-color:rgba(255,100,140,.7) !important;
    box-shadow:0 0 30px rgba(255,100,140,.55) !important;
    transform:translateY(-3px) scale(1.01) !important;
}

/* Sticky + Locked variations */
.thread-card.sticky{
    box-shadow:0 0 34px rgba(255,120,180,.8) !important;
}
.thread-card.locked{
    opacity:.92;
}

/* Top row */
.thread-card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.5rem;
}

/* Title */
.thread-title{
    margin:4px 0 6px 0 !important;
    font-size:1.15rem !important;
    font-weight:800 !important;
}

/* Author row */
.thread-author{
    display:flex;
    align-items:center;
    gap:.55rem;
}

/* Footer */
.thread-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:.45rem;
}

/* Stats pills */
.stat-pill{
    display:inline-flex;
    align-items:center;
    gap:.25rem;
    padding:.22rem .55rem;
    background:rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.18);
    border-radius:8px;
    font-size:.8rem;
}

/* Mobile = single column */
@media(max-width:900px){
    .threads-grid{
        grid-template-columns:1fr !important;
    }
}

.like-btn,
.fav-btn {
    cursor: pointer;
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    padding: .35rem .6rem;
    border-radius: 999px;
    transition: 0.25s;
}

.like-btn:hover,
.fav-btn:hover {
    background: rgba(255,255,255,.08);
}

.like-btn.active {
    color: #ff5577;
}

.fav-btn.active {
    color: gold;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-banner {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    filter: brightness(.8);
    margin-bottom: -60px;
}

.profile-card {
    position: relative;
    padding-top: 80px;
}

.profile-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 3px solid rgba(255,255,255,.5);
}

.profile-username {
    margin: 0;
}

.profile-follow-form {
    margin-top: .7rem;
}

.profile-xp-bar {
    margin-top: 1rem;
}

.profile-xp-label {
    font-size: .85rem;
    opacity: .8;
    margin-bottom: .3rem;
}

.profile-xp-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}

.profile-xp-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(244,63,94,1), rgba(219,39,119,1));
    box-shadow: 0 0 14px rgba(236,72,153,.7);
}

.profile-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    padding: .75rem 1.25rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-label {
    opacity: .8;
}

/* Tabs */
.profile-tabs-card {
    margin-top: 1.5rem;
}

.profile-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.profile-tab-btn {
    border: none;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    transition: .2s;
}

.profile-tab-btn.active {
    background: rgba(244,63,94,.9);
    box-shadow: 0 0 15px rgba(244,114,182,.6);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: .75rem;
    margin-top: .75rem;
}

.achievement-card {
    display: flex;
    gap: .6rem;
    padding: .6rem .8rem;
    border-radius: 12px;
    background: rgba(15,15,20,.9);
    border: 1px solid rgba(255,255,255,.08);
    opacity: .6;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: rgba(244,114,182,.7);
    box-shadow: 0 0 16px rgba(244,114,182,.4);
}

.achievement-icon i {
    font-size: 1.3rem;
}

.achievement-title {
    font-weight: 700;
    font-size: .95rem;
}

.achievement-desc {
    font-size: .8rem;
    opacity: .8;
}

/* Activity list */
.profile-activity-list {
    list-style: none;
    padding: 0;
    margin-top: .5rem;
}

.profile-activity-list li {
    padding: .15rem 0;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.35);
    margin-right: .35rem;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: .25rem;
    position: relative;
}

/* Tiny badge overlay */
.header-premium {
    position: absolute;
    right: -6px;
    top: -6px;
    font-size: .65rem;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Base avatar styling */
.header-avatar,
.profile-avatar,
.avatar-sm {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
    transition: box-shadow .25s ease, transform .15s ease;
}

/* Hover micro-animation */
.header-avatar:hover,
.profile-avatar:hover,
.avatar-sm:hover {
    transform: scale(1.04);
}

/* =========================
   ROLE BORDER THEMES
   ========================= */

/* Admin — Red Neon */
.role-admin {
    box-shadow:
        0 0 0 2px rgba(239,68,68,.9),
        0 0 12px rgba(239,68,68,.8),
        0 0 22px rgba(239,68,68,.6);
}

/* Moderator — Blue Neon */
.role-moderator {
    box-shadow:
        0 0 0 2px rgba(59,130,246,.9),
        0 0 12px rgba(59,130,246,.8),
        0 0 22px rgba(59,130,246,.6);
}

/* Premium — Pink/Gold Neon */
.role-premium {
    box-shadow:
        0 0 0 2px rgba(244,114,182,.95),
        0 0 14px rgba(244,114,182,.85),
        0 0 28px rgba(244,114,182,.75);
}

/* Default User — Soft White */
.role-user,
.role-null,
.role- {
    box-shadow:
        0 0 0 2px rgba(255,255,255,.28),
        0 0 10px rgba(255,255,255,.18);
}

.profile-actions {
    margin-top: .75rem;
}

.profile-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
}
