/* ==========================================================================
   Base / Global
   ========================================================================== */

:root {
    --bg-primary: #050505;      /* Starless Black */
    --bg-secondary: #1A2A3A;    /* Eclipse Blue */
    --accent-main: #3DE0C4;     /* Phantom Cyan */
    --accent-alt: #00A89D;      /* Spectral Teal */
    --bg-depth: #2F1B3A;        /* Grave Violet */
    --text-primary: #FFFFFF;    /* Frost White */
    --text-secondary: #B6B6B6;  /* Ash Grey */
    --text-muted: #888888;      /* Shadow Grey */
    --alert: #E85D3F;           /* Rift Ember */

    /* Additional helpers used later */
    --bg-sidebar: #05070c;
    --bg-chat: #05070c;
    --accent-soft: rgba(61, 224, 196, 0.08);
}

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

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #10151f 0, var(--bg-primary) 55%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    flex: 1;
}

/* Shared brand bits (sizes can be overridden per page if needed) */
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-text-main {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.brand-text-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.brand-mark {
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, var(--accent-main), var(--accent-alt), var(--bg-depth));
}

/* Default footer */
footer {
    border-top: 1px solid rgba(61,224,196,0.12);
    background: rgba(5,5,5,0.96);
    text-align: center;
    padding: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Homepage Style
   ========================================================================== */

.home-page header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(5,5,5,0.98), rgba(5,5,5,0.86), rgba(5,5,5,0));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(61, 224, 196, 0.08);
}

.home-page .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-page .brand-mark {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 18px rgba(61, 224, 196, 0.55);
    position: relative;
    overflow: hidden;
}

.home-page .brand-mark::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 40% 70% 30% 80%;
    border: 2px solid rgba(5,5,5,0.9);
    transform: rotate(-18deg);
}

.home-page nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.home-page .nav-link {
    position: relative;
    color: var(--text-secondary);
    padding-bottom: 0.1rem;
}

.home-page .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-main), var(--accent-alt));
    transition: width 0.18s ease-out;
}

.home-page .nav-link:hover::after {
    width: 100%;
}

.home-page .nav-link.active {
    color: var(--accent-main);
}

.home-page .nav-link.active::after {
    width: 100%;
}

.home-page .nav-button {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(61, 224, 196, 0.8);
    background: radial-gradient(circle at top, rgba(61,224,196,0.22), rgba(5,5,5,0.98));
    color: var(--accent-main);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.home-page .nav-button:hover {
    box-shadow: 0 0 15px rgba(61, 224, 196, 0.55);
    transform: translateY(-1px);
}

/* Primary call-to-action button on home nav */
.home-page .nav-button-primary {
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #000;
    font-weight: 600;
    border-color: rgba(0,0,0,0.75);
}

.home-page .page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
}

/* Hero */
.home-page .hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0 2.5rem;
}

.home-page .hero-kicker {
    font-size: 0.8rem;
    color: var(--accent-main);
    margin-bottom: 0.9rem;
}

.home-page .hero-title {
    font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.home-page .hero-title span {
    color: var(--accent-main);
}

.home-page .hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 32rem;
    margin-bottom: 1.3rem;
}

.home-page .hero-subtitle strong {
    color: var(--accent-alt);
    font-weight: 600;
}

.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.home-page .btn-primary,
.home-page .btn-secondary {
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.home-page .btn-primary {
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.75);
}

.home-page .btn-primary:hover {
    box-shadow: 0 0 18px rgba(61, 224, 196, 0.65);
    transform: translateY(-1px);
}

.home-page .btn-secondary {
    background: rgba(26, 42, 58, 0.9);
    border-color: rgba(61, 224, 196, 0.35);
    color: var(--text-secondary);
}

.home-page .btn-secondary:hover {
    border-color: var(--accent-main);
}

.home-page .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.home-page .hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.home-page .hero-meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent-main);
}

/* Homepage – Preview dropdown button */
.home-page .preview-dropdown {
    position: relative;
    display: inline-block;
}

.home-page .preview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-page .preview-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    background: rgba(5, 5, 5, 0.98);
    border-radius: 0.6rem;
    border: 1px solid rgba(61, 224, 196, 0.24);
    min-width: 220px;
    padding: 0.4rem 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 30;
}

.home-page .preview-menu a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.home-page .preview-menu a:hover {
    background: rgba(26, 42, 58, 0.92);
    color: var(--accent-main);
}

/* show menu on hover */
.home-page .preview-dropdown:hover .preview-menu {
    display: block;
}

.home-page .hero-card {
    background: radial-gradient(circle at top left, rgba(61, 224, 196, 0.12), rgba(5,5,5,0.95) 55%);
    border-radius: 1rem;
    border: 1px solid rgba(61, 224, 196, 0.2);
    padding: 1.25rem 1.15rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 22px rgba(61, 224, 196, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.85);
}

.home-page .hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 0, rgba(61, 224, 196, 0.22), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(47, 27, 58, 0.55), transparent 55%);
    opacity: 0.75;
    pointer-events: none;
}

.home-page .hero-card-inner {
    position: relative;
}

.home-page .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(5,5,5,0.7);
    border: 1px solid rgba(61, 224, 196, 0.4);
    margin-bottom: 0.75rem;
}

.home-page .hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-main);
    box-shadow: 0 0 10px rgba(61, 224, 196, 0.75);
}

.home-page .hero-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.home-page .hero-card-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

.home-page .hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.78rem;
}

.home-page .hero-card-item {
    padding: 0.45rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(5,5,5,0.7);
    border: 1px solid rgba(47, 27, 58, 0.7);
}

.home-page .hero-card-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-bottom: 0.12rem;
}

.home-page .hero-card-value {
    color: var(--accent-main);
    font-weight: 600;
}

/* Features */
.home-page .section {
    margin-bottom: 2.25rem;
}

.home-page .section-header {
    margin-bottom: 1.1rem;
}

.home-page .section-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.home-page .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.home-page .section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 32rem;
}

.home-page .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .feature-card {
    background: linear-gradient(150deg, rgba(26, 42, 58, 0.96), rgba(5,5,5,0.98));
    border-radius: 0.9rem;
    border: 1px solid rgba(61, 224, 196, 0.16);
    padding: 0.9rem 0.9rem 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
    position: relative;
    overflow: hidden;
}

.home-page .feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 0.6rem;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.home-page .feature-title {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.home-page .feature-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.home-page .feature-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* About */
.home-page .about {
    background: radial-gradient(circle at top left, rgba(61, 224, 196, 0.1), rgba(5,5,5,0.98));
    border-radius: 1rem;
    border: 1px solid rgba(61, 224, 196, 0.14);
    padding: 1.1rem 1.1rem 1.15rem;
}

.home-page .about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.home-page .about p:last-child {
    margin-bottom: 0;
}

/* Homepage footer */
.home-page footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-page .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-page .footer-links a {
    color: var(--text-secondary);
}

.home-page .footer-links a:hover {
    color: var(--accent-main);
}

@media (max-width: 768px) {
    .home-page .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 1rem;
    }

    .home-page .hero-card {
        order: -1;
    }

    .home-page nav {
        display: none; /* mobile menu later */
    }

    .home-page .page-container {
        padding-inline: 1rem;
    }

    .home-page .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Signup Style
   ========================================================================== */

.signup-page header {
    border-bottom: 1px solid rgba(61,224,196,0.12);
    background: rgba(5,5,5,0.96);
}

.signup-page .nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.signup-page .brand-mark {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 14px rgba(61,224,196,0.5);
}

.signup-page .nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.signup-page .nav-link:hover {
    color: var(--accent-main);
}

.signup-page .page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2rem;
}

@media (max-width: 800px) {
    .signup-page .page-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

.signup-page .signup-panel {
    background: rgba(5,5,5,0.96);
    border-radius: 1rem;
    border: 1px solid rgba(61,224,196,0.18);
    padding: 1.4rem 1.4rem 1.6rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.signup-page .signup-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.signup-page .signup-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.signup-page form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.signup-page label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.signup-page .input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.95);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.signup-page .input:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(61,224,196,0.4);
}

.signup-page .age-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.signup-page .age-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.3);
    background: rgba(10,10,10,0.9);
    font-size: 0.8rem;
    cursor: pointer;
}

.signup-page .age-chip.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.signup-page .age-chip input {
    accent-color: var(--accent-main);
}

.signup-page .age-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.signup-page .submit-btn {
    margin-top: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-weight: 600;
    cursor: pointer;
}

.signup-page .submit-btn:hover {
    box-shadow: 0 0 18px rgba(61,224,196,0.7);
}

.signup-page .right-panel {
    padding-top: 0.4rem;
}

.signup-page .right-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.signup-page .right-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.signup-page .note-box {
    margin-top: 0.6rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(61,224,196,0.35);
    background: rgba(5,10,12,0.95);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Dashboard Style
   ========================================================================== */

.dashboard-page header {
    border-bottom: 1px solid rgba(61,224,196,0.12);
    background: rgba(5,5,5,0.96);
}

.dashboard-page .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-page .brand-mark {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 14px rgba(61,224,196,0.5);
}

.dashboard-page .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.dashboard-page .nav-link {
    color: var(--text-secondary);
    position: relative;
}

.dashboard-page .nav-link.active {
    color: var(--accent-main);
}

.dashboard-page .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-main), var(--accent-alt));
}

.dashboard-page .nav-logout {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.35);
    background: rgba(5,5,5,0.9);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.dashboard-page .page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.dashboard-page .panel {
    background: rgba(5,5,5,0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(61,224,196,0.16);
    padding: 0.9rem 0.9rem 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.85);
}

.dashboard-page .panel-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.dashboard-page .panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
}

/* Left: Wolf Dens */
.dashboard-page .dens-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.dashboard-page .den-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    background: rgba(10,10,10,0.9);
    cursor: default;
}

.dashboard-page .den-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-main);
    box-shadow: 0 0 8px rgba(61,224,196,0.8);
}

.dashboard-page .den-name {
    font-size: 0.85rem;
}

.dashboard-page .den-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.dashboard-page .den-button {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.4);
    background: rgba(5,10,12,0.95);
    font-size: 0.8rem;
    color: var(--accent-main);
    cursor: pointer;
}

.dashboard-page .den-button:hover {
    box-shadow: 0 0 12px rgba(61,224,196,0.6);
}

/* Center: Welcome, composer, Pack Feed */
.dashboard-page .welcome-banner {
    background: radial-gradient(circle at top left, rgba(61,224,196,0.14), rgba(5,5,5,0.96));
    border-radius: 0.9rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(61,224,196,0.18);
    margin-bottom: 0.8rem;
}

.dashboard-page .welcome-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.dashboard-page .welcome-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.dashboard-page .composer-panel {
    background: rgba(5,5,5,0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(61,224,196,0.16);
    padding: 0.85rem 0.9rem 0.9rem;
    margin-bottom: 0.8rem;
}

.dashboard-page .composer-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.dashboard-page .composer-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.dashboard-page .composer-textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    padding: 0.55rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(10,10,10,0.95);
    color: var(--text-primary);
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
}

.dashboard-page .composer-textarea:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(61,224,196,0.4);
}

.dashboard-page .composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-page .composer-button {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.8);
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.dashboard-page .composer-button:hover {
    box-shadow: 0 0 14px rgba(61,224,196,0.7);
}

.dashboard-page .feed-panel {
    background: rgba(5,5,5,0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(61,224,196,0.14);
    padding: 0.85rem 0.9rem 0.9rem;
}

.dashboard-page .feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dashboard-page .feed-title {
    font-size: 0.95rem;
}

.dashboard-page .feed-filter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-page .feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-page .feed-item {
    padding: 0.55rem 0.55rem 0.65rem;
    border-radius: 0.6rem;
    background: rgba(10,10,12,0.95);
    border: 1px solid rgba(47,27,58,0.7);
}

.dashboard-page .feed-meta {
    display: flex;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.dashboard-page .feed-author {
    color: var(--accent-main);
}

.dashboard-page .feed-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-page .feed-footer {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Right: Firepit + sessions + Pack Members */
.dashboard-page .firepit-panel,
.dashboard-page .session-panel,
.dashboard-page .friends-panel {
    background: rgba(5,5,5,0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(61,224,196,0.14);
    padding: 0.85rem 0.9rem 0.9rem;
    margin-bottom: 0.85rem;
}

.dashboard-page .thread-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-page .thread-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.dashboard-page .thread-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-page .session-item {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.dashboard-page .session-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dashboard-page .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.4);
    color: var(--accent-main);
}

.dashboard-page .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent-main);
}

/* Pack Members */
.dashboard-page .friends-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-page .friend-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    background: rgba(10,10,12,0.95);
}

.dashboard-page .friend-avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
}

.dashboard-page .friend-name {
    font-size: 0.85rem;
}

.dashboard-page .friend-status {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .dashboard-page .page-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    }

    .dashboard-page .right-col {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .dashboard-page .page-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-page .right-col {
        grid-column: auto;
    }
}







/* ==========================================================================
   Wolf Den Layout (den.html)
   ========================================================================== */

/* HEADER */
header.den-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.9rem;
    border-bottom: 1px solid rgba(61,224,196,0.18);
    background: linear-gradient(to right, rgba(5,5,5,0.98), rgba(5,5,5,0.9));
    flex-shrink: 0;
}

.den-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.den-logo {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, var(--accent-main), var(--accent-alt), #1b1022);
    box-shadow: 0 0 12px rgba(61,224,196,0.6);
}

.den-title {
    display: flex;
    flex-direction: column;
}

.den-title-main {
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
}

.den-title-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.den-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.den-header-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--accent-main);
    background: rgba(5,5,5,0.9);
}

.den-header-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-main);
    box-shadow: 0 0 8px rgba(61,224,196,0.8);
}

.den-header-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.den-header-link:hover {
    color: var(--accent-main);
}

/* LAYOUT GRID */
.den-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 210px 260px minmax(0, 1.9fr) 250px;
    height: calc(100vh - 52px);
    background: radial-gradient(circle at top left, #111828 0, #050505 55%);
}

/* LEFTMOST: DENS LIST */

.den-servers {
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(0,0,0,0.8);
    padding: 0.55rem 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.den-servers-title {
    padding: 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.server-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.server-item.active {
    background: linear-gradient(120deg, rgba(61,224,196,0.05), rgba(0,0,0,0.9));
    border: 1px solid rgba(61,224,196,0.4);
}

.server-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.server-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.server-item.active .server-name {
    color: var(--accent-main);
}

.server-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.server-add {
    margin-top: 0.5rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
    border: 1px dashed rgba(61,224,196,0.3);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: default;
}

/* CHANNELS COLUMN */

.den-channels {
    background: #070a10;
    border-right: 1px solid rgba(0,0,0,0.9);
    padding: 0.55rem 0.45rem;
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    position: relative; /* for dropdown menu */
}

/* top area like Discord: Den name row + Channels label */
.channels-header {
    padding: 0.2rem 0 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}

.channels-den-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.channels-den-name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.channels-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* channel groups + list */
.channel-section-label {
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.channel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.3rem;
    border-radius: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.channel-item.active {
    background: var(--accent-soft);
    color: var(--accent-main);
}

.channel-hash {
    font-size: 0.9rem;
    opacity: 0.85;
}

.channel-name {
    font-size: 0.8rem;
}

.channel-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

#channelsContainer {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.channels-footer {
    margin-top: auto;
    padding-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* bottom buttons under channels */
.channels-actions-row {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.35rem;
}

.den-button--small {
    width: auto;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

/* CHAT COLUMN */

.den-chat {
    background: var(--bg-chat);
    display: flex;
    flex-direction: column;
}

.chat-header {
    height: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chat-header-channel {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-header-channel-name {
    font-size: 0.88rem;
}

.chat-header-topic {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.chat-main {
    flex: 1;
    padding: 0.6rem 0.8rem;
    overflow-y: auto;
    font-size: 0.85rem;
    scroll-behavior: smooth;
}

.chat-day-divider {
    text-align: center;
    margin: 0.4rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.25rem 0;
    position: relative;
    padding-right: 2.5rem;
    transition: background 120ms ease;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.message-body {
    display: flex;
    flex-direction: column;
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.message-author {
    color: var(--accent-main);
    font-weight: 500;
}

.message-timestamp {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.message-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.message-text.system {
    color: var(--text-muted);
    font-style: italic;
}

.message-ping {
    color: var(--accent-main);
}

/* reactions row under messages (used by JS) */
.message-reactions {
    margin-top: 0.2rem;
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: 0.9;
}

.reaction-pill,
.message-reaction-pill {
    border-radius: 999px;
    padding: 0.05rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

/* deleted / pinned / edited states */
.message--deleted .message-text {
    font-style: italic;
    opacity: 0.6;
}

.message-header .pinned-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-left: 6px;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(242,201,76,0.7);
    color: #f2c94c;
}

.message-header .edited-badge {
    font-size: 0.65rem;
    margin-left: 4px;
    opacity: 0.7;
}

.message.pinned-flash {
    box-shadow: 0 0 0 1px rgba(61, 224, 196, 0.4);
}

/* reply preview inside message */
.message-reply-ref {
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-bottom: 3px;
    border-left: 2px solid var(--accent-main, #3DE0C4);
    color: var(--text-muted, #888);
    opacity: 0.9;
}

/* chat input + typing */
.chat-input-bar {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.9);
    background: #080b12;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-input {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(61,224,196,0.2);
    background: #05070c;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(61,224,196,0.4);
}

.chat-send-btn {
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.chat-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.typing-indicator {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    padding: 0.2rem 0.75rem 0;
    min-height: 1.1rem;
}

/* reply bar above input */
.chat-reply-bar {
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(61,224,196,0.08);
    border: 1px solid rgba(61,224,196,0.35);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.chat-reply-snippet {
    opacity: 0.8;
    margin-left: 4px;
}

.chat-reply-cancel {
    border: none;
    background: transparent;
    color: var(--text-muted, #888);
    cursor: pointer;
    font-size: 0.8rem;
}

/* MEMBERS COLUMN */

.den-members {
    background: #05070c;
    border-left: 1px solid rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
}

.members-header {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.members-list {
    flex: 1;
    padding: 0.4rem 0.4rem 0.6rem;
    overflow-y: auto;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.25rem;
    border-radius: 0.4rem;
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-info {
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 0.78rem;
}

.member-name.me {
    color: var(--accent-main);
}

.member-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.member-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-main);
    margin-left: auto;
    box-shadow: 0 0 6px rgba(61,224,196,0.7);
}

.member-status-dot.idle {
    background: #e5c25e;
    box-shadow: 0 0 6px rgba(229,194,94,0.7);
}

.member-status-dot.offline {
    background: #444;
    box-shadow: none;
}

.members-footer {
    padding: 0.4rem 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* SCROLLBARS */
.den-layout ::-webkit-scrollbar {
    width: 6px;
}
.den-layout ::-webkit-scrollbar-track {
    background: #050505;
}
.den-layout ::-webkit-scrollbar-thumb {
    background: #202633;
    border-radius: 999px;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .den-layout {
        grid-template-columns: 210px minmax(0, 2fr) 0;
        grid-template-rows: minmax(0,1fr) auto;
    }
    .den-members {
        display: none; /* hide members panel on smaller screens */
    }
}

@media (max-width: 720px) {
    .den-layout {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .den-channels {
        display: none; /* collapse channels column on very small screens */
    }

    .den-servers {
        width: 60px;
    }

    .server-name,
    .server-meta,
    .den-servers-title {
        display: none;
    }
}

/* =====================================================================
   WOLFRIFT BUTTON OVERRIDES
   ===================================================================== */

.den-button,
.server-add,
#addCategoryBtn,
#addChannelUncatBtn,
#createDenBtn {
    background-color: rgba(61, 224, 196, 0.12) !important;
    color: var(--accent-main) !important;
    border: 1px solid rgba(61, 224, 196, 0.4) !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    display: inline-block !important;
    background-image: none !important;
}

.den-button:hover,
.server-add:hover,
#addCategoryBtn:hover,
#addChannelUncatBtn:hover,
#createDenBtn:hover {
    background-color: rgba(61, 224, 196, 0.22) !important;
    border-color: var(--accent-main) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(61, 224, 196, 0.6) !important;
}

.den-button:active,
.server-add:active,
#addCategoryBtn:active,
#addChannelUncatBtn:active,
#createDenBtn:active {
    transform: scale(0.97) !important;
    background-color: rgba(61, 224, 196, 0.35) !important;
}

#createDenBtn {
    width: 100% !important;
    margin-top: 0.75rem !important;
    padding: 0.6rem 0.75rem !important;
    font-weight: 600 !important;
}

#addCategoryBtn,
#addChannelUncatBtn {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.75rem !important;
    border-radius: 999px !important;
}

/* =====================================================================
   Message context menu (right-click) – matches JS structure
   ===================================================================== */

.message-context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 200px;
    padding: 0.35rem 0;
    border-radius: 0.6rem;
    background: #050505;
    border: 1px solid rgba(61, 224, 196, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    display: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
}

.message-context-menu__item {
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: transparent;
    color: var(--text-secondary, #b6b6b6);
    cursor: pointer;
    text-align: left;
}

.message-context-menu__item:hover {
    background: rgba(61, 224, 196, 0.12);
    color: var(--accent-main);
}

.message-context-menu__item--danger {
    color: var(--alert, #E85D3F);
}

.message-context-menu__item--danger:hover {
    background: rgba(232, 93, 63, 0.18);
}

/* =====================================================================
   WOLFRIFT DEN DROPDOWN MENU (Discord-style server menu)
   ===================================================================== */

/* Wolf button next to den name (inside channels header) */
.den-header-menu-btn {
    border: 1px solid rgba(61,224,196,0.6);
    background: rgba(10,14,24,0.9);
    color: var(--accent-main, #3DE0C4);
    border-radius: 999px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
    box-shadow: 0 0 0 rgba(61,224,196,0);
}

.den-header-menu-btn:hover {
    background: rgba(61,224,196,0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.den-header-menu-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Dropdown menu (positioned inside channels column) */
.den-menu {
    position: absolute;
    top: 60px;           /* just under channels header */
    left: 0.45rem;       /* lines up with channels text */
    width: 240px;

    background: #0A0D12;
    border-radius: 10px;
    border: 1px solid rgba(61,224,196,0.5);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.9),
        0 0 0 1px rgba(3,8,20,0.9);

    padding: 6px 0;
    z-index: 9998;
    font-size: 0.8rem;

    display: none;
    flex-direction: column;
}

.den-menu--open {
    display: flex;
}

.den-menu-section {
    padding: 4px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.den-menu-section:first-child {
    border-top: none;
}

.den-menu-section--danger {
    padding-top: 6px;
}

.den-menu-item {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    transition:
        background 0.12s ease,
        color 0.12s ease,
        transform 0.08s ease;
}

.den-menu-item:hover {
    background: rgba(61,224,196,0.16);
    transform: translateX(1px);
}

.den-menu-item--danger {
    color: var(--alert, #E85D3F);
}

.den-menu-item--danger:hover {
    background: rgba(232,93,63,0.18);
}

.den-menu-icon {
    width: 18px;
    text-align: center;
    opacity: 0.95;
}

.den-menu-label {
    flex: 1;
    color: var(--text-secondary, #B6B6B6);
}

.den-menu-item:hover .den-menu-label {
    color: var(--text-primary, #fff);
}




.voice-status {
  margin: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(10, 20, 32, 0.9);
  border: 1px solid rgba(61, 224, 196, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.voice-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-status-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-main);
  font-size: 0.7rem;
}

.voice-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3de0c4;
}

.voice-status-channel {
  font-weight: 600;
  color: var(--text-primary);
}

.voice-status-meta {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.voice-status-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.voice-btn {
  border: 1px solid rgba(61, 224, 196, 0.4);
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.voice-btn:hover {
  background: rgba(61, 224, 196, 0.12);
}

.voice-btn-leave {
  border-color: var(--alert);
  color: var(--alert);
}














/* ==========================================================================
   Pack Feed (Video Hub)
   ========================================================================== */

.packfeed-page {
    background: radial-gradient(circle at top, #10151f 0, var(--bg-primary) 60%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Header */

.pf-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(61,224,196,0.18);
    background: linear-gradient(to right, rgba(5,5,5,0.98), rgba(5,5,5,0.9));
}

.pf-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pf-logo {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, var(--accent-main), var(--accent-alt), var(--bg-depth));
    box-shadow: 0 0 14px rgba(61,224,196,0.6);
}

.pf-title {
    display: flex;
    flex-direction: column;
}

.pf-title-main {
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
}

.pf-title-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.pf-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.pf-nav-link {
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 0.1rem;
}

.pf-nav-link:hover {
    color: var(--accent-main);
}

.pf-nav-link.active {
    color: var(--accent-main);
}

.pf-nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-main), var(--accent-alt));
}

/* Layout */

.pf-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - 52px);
    background: radial-gradient(circle at top left, #111828 0, #050505 55%);
}

/* Sidebar */

.pf-sidebar {
    background: #05070c;
    border-right: 1px solid rgba(0,0,0,0.9);
    padding: 0.9rem 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 0.85rem;
}

.pf-sidebar-title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pf-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pf-cat-item {
    padding: 0.4rem 0.5rem;
    border-radius: 0.45rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.pf-cat-item:hover {
    background: rgba(37,55,67,0.8);
}

.pf-cat-item.active {
    background: var(--accent-soft);
    color: var(--accent-main);
}

.pf-upload-section {
    margin-top: 0.6rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.pf-upload-section h3 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.pf-upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pf-upload-input {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.pf-upload-title,
.pf-upload-desc {
    width: 100%;
    border-radius: 0.45rem;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
}

.pf-upload-desc {
    resize: vertical;
    min-height: 60px;
}

.pf-upload-title:focus,
.pf-upload-desc:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(61,224,196,0.4);
}

.pf-upload-button {
    margin-top: 0.2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.9);
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.pf-upload-button:hover {
    box-shadow: 0 0 14px rgba(61,224,196,0.7);
}

/* Main Content */

.pf-main {
    padding: 1rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Search Bar */

.pf-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pf-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.pf-search-button {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    border: 1px solid rgba(0,0,0,0.9);
    color: #010101;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.pf-search-button:hover {
    box-shadow: 0 0 14px rgba(61,224,196,0.7);
}

/* Featured Video */

.pf-featured {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.9rem;
    background: rgba(5,5,5,0.96);
    border-radius: 0.9rem;
    border: 1px solid rgba(61,224,196,0.18);
    padding: 0.8rem 0.9rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.8);
}

.pf-featured-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.6rem;
    background: #000;
}

.pf-featured-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pf-featured-title {
    font-size: 1rem;
}

.pf-featured-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Video Grid */

.pf-video-grid {
    margin-top: 0.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.pf-video-card {
    background: rgba(5,5,5,0.96);
    border-radius: 0.8rem;
    border: 1px solid rgba(61,224,196,0.12);
    padding: 0.45rem 0.45rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.85);
}

.pf-video-card:hover {
    border-color: rgba(61,224,196,0.35);
    transform: translateY(-2px);
}

.pf-video-thumb {
    position: relative;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #000;
}

.pf-video-thumb video {
    width: 100%;
    display: block;
}

.pf-video-info {
    padding: 0 0.1rem;
}

.pf-video-title {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.pf-video-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
    .pf-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .pf-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pf-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pf-sidebar {
        display: none;
    }

    .pf-video-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Firepit Forums
   ========================================================================== */

.firepit-page {
    background: radial-gradient(circle at top, #10151f 0, var(--bg-primary) 60%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Header */

.fp-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(61,224,196,0.18);
    background: linear-gradient(to right, rgba(5,5,5,0.98), rgba(5,5,5,0.9));
}

.fp-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fp-logo {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, var(--accent-main), var(--accent-alt), var(--bg-depth));
    box-shadow: 0 0 14px rgba(61,224,196,0.6);
}

.fp-title {
    display: flex;
    flex-direction: column;
}

.fp-title-main {
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
}

.fp-title-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.fp-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.fp-nav-link {
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 0.1rem;
}

.fp-nav-link:hover {
    color: var(--accent-main);
}

/* Layout */

.fp-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1.7fr) 280px;
    min-height: calc(100vh - 52px);
    background: radial-gradient(circle at top left, #111828 0, #050505 55%);
}

/* Sidebar (categories + compose) */

.fp-sidebar {
    background: #05070c;
    border-right: 1px solid rgba(0,0,0,0.9);
    padding: 0.9rem 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 0.85rem;
}

.fp-sidebar-title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fp-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fp-cat-item {
    padding: 0.4rem 0.5rem;
    border-radius: 0.45rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.fp-cat-item:hover {
    background: rgba(37,55,67,0.8);
}

.fp-cat-item.active {
    background: var(--accent-soft);
    color: var(--accent-main);
}

.fp-compose {
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.fp-compose-title {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.fp-compose-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fp-input,
.fp-textarea {
    width: 100%;
    border-radius: 0.45rem;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
}

.fp-textarea {
    min-height: 70px;
    resize: vertical;
}

.fp-input:focus,
.fp-textarea:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(61,224,196,0.4);
}

.fp-compose-button {
    margin-top: 0.2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.9);
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    color: #010101;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.fp-compose-button:hover {
    box-shadow: 0 0 14px rgba(61,224,196,0.7);
}

.fp-compose-note {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main center column (thread list) */

.fp-main {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Search + sort row */

.fp-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fp-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fp-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
}

.fp-search-button {
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    border: 1px solid rgba(0,0,0,0.9);
    color: #010101;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.fp-sort {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fp-sort-select {
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    padding: 0.32rem 0.6rem;
    font-size: 0.8rem;
}

/* Sections */

.fp-section {
    margin-top: 0.4rem;
}

.fp-section-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.fp-thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Threads */

.fp-thread {
    background: rgba(5,5,5,0.96);
    border-radius: 0.8rem;
    border: 1px solid rgba(61,224,196,0.12);
    padding: 0.6rem 0.75rem 0.7rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.85);
}

.fp-thread-pinned {
    border-color: rgba(61,224,196,0.4);
}

.fp-thread-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.fp-thread-title {
    font-size: 0.95rem;
}

.fp-thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.fp-thread-author {
    color: var(--accent-main);
}

.fp-thread-snippet {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Thread tags */

.fp-thread-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    border: 1px solid rgba(61,224,196,0.45);
    color: var(--accent-main);
}

.fp-tag-announcement {
    border-color: rgba(232,93,63,0.7);
    color: #ffb49b;
}

.fp-tag-raid {
    border-color: rgba(61,224,196,0.8);
}

.fp-tag-log {
    border-color: rgba(147,112,219,0.7);
}

.fp-tag-lfg {
    border-color: rgba(255,206,86,0.8);
}

/* Right column */

.fp-right {
    background: #05070c;
    border-left: 1px solid rgba(0,0,0,0.9);
    padding: 0.9rem 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.82rem;
}

.fp-right-section {
    background: rgba(5,5,5,0.96);
    border-radius: 0.8rem;
    border: 1px solid rgba(61,224,196,0.14);
    padding: 0.6rem 0.7rem 0.75rem;
}

.fp-right-title {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.fp-right-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fp-filter-list,
.fp-activity-list {
    list-style: none;
    margin-top: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.fp-activity-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.fp-right-note {
    border-style: dashed;
}

/* Responsive */

@media (max-width: 960px) {
    .fp-layout {
        grid-template-columns: 230px minmax(0, 1.6fr);
    }

    .fp-right {
        display: none; /* can be turned into a slide-out later */
    }
}

@media (max-width: 720px) {
    .fp-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-sidebar {
        display: none;
    }

    .fp-main {
        padding-inline: 0.9rem;
    }
}

/* ==========================================================================
   Pack Members Page
   ========================================================================== */

.packmembers-page {
    background: radial-gradient(circle at top, #10151f 0, var(--bg-primary) 60%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Header */

.pm-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(61,224,196,0.18);
    background: linear-gradient(to right, rgba(5,5,5,0.98), rgba(5,5,5,0.9));
}

.pm-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pm-logo {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, var(--accent-main), var(--accent-alt), var(--bg-depth));
    box-shadow: 0 0 14px rgba(61,224,196,0.6);
}

.pm-title {
    display: flex;
    flex-direction: column;
}

.pm-title-main {
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
}

.pm-title-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.pm-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.pm-nav-link {
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 0.1rem;
}

.pm-nav-link:hover {
    color: var(--accent-main);
}

/* Layout */
.pm-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 240px minmax(0, 1.7fr) 280px;
    min-height: calc(100vh - 52px);
    background: radial-gradient(circle at top left, #111828 0, #050505 55%);
}

/* Sidebar */

.pm-sidebar {
    background: #05070c;
    border-right: 1px solid rgba(0,0,0,0.9);
    padding: 0.9rem 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 0.85rem;
}

.pm-sidebar-title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pm-filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pm-filter-item {
    padding: 0.4rem 0.5rem;
    border-radius: 0.45rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.pm-filter-item:hover {
    background: rgba(37,55,67,0.8);
}

.pm-filter-item.active {
    background: var(--accent-soft);
    color: var(--accent-main);
}

.pm-sidebar-section {
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.pm-sidebar-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.pm-sidebar-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Main (center column) */

.pm-main {
    padding: 1rem 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pm-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.pm-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pm-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.2);
    background: rgba(5,5,5,0.96);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.pm-search-button {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-main), var(--accent-alt));
    border: 1px solid rgba(0,0,0,0.9);
    color: #010101;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.pm-search-button:hover {
    box-shadow: 0 0 14px rgba(61,224,196,0.7);
}

.pm-status-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.4);
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(5,5,5,0.9);
}

/* Sections */

.pm-section {
    margin-top: 0.4rem;
}

.pm-section-title {
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.pm-member-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Member cards */

.pm-member-card {
    background: rgba(5,5,5,0.96);
    border-radius: 0.85rem;
    border: 1px solid rgba(61,224,196,0.12);
    padding: 0.55rem 0.7rem 0.7rem;
    display: grid;
    grid-template-columns: 42px minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 0.6rem;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.85);
}

.pm-member-online {
    border-color: rgba(61,224,196,0.4);
}

.pm-member-offline {
    opacity: 0.8;
}

.pm-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, var(--accent-main), var(--accent-alt));
    font-size: 1rem;
}

.pm-member-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pm-member-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.pm-member-name {
    font-size: 0.95rem;
}

.pm-member-tag {
    font-size: 0.75rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.35);
    color: var(--accent-main);
}

.pm-member-status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pm-member-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Member actions (right side of card) */

.pm-member-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.pm-member-button {
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(61,224,196,0.6);
    background: rgba(5,5,5,0.96);
    color: var(--accent-main);
    font-size: 0.78rem;
    cursor: pointer;
}

.pm-member-button:hover {
    box-shadow: 0 0 10px rgba(61,224,196,0.7);
}

.pm-member-button-ghost {
    border-color: rgba(61,224,196,0.3);
    color: var(--text-secondary);
}

/* Right column */

.pm-right {
    background: #05070c;
    border-left: 1px solid rgba(0,0,0,0.9);
    padding: 0.9rem 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.82rem;
}

.pm-right-section {
    background: rgba(5,5,5,0.96);
    border-radius: 0.8rem;
    border: 1px solid rgba(61,224,196,0.14);
    padding: 0.6rem 0.7rem 0.75rem;
}

.pm-right-title {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.pm-right-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pm-right-list {
    list-style: none;
    margin-top: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pm-right-note {
    border-style: dashed;
}

/* Responsive */

@media (max-width: 960px) {
    .pm-layout {
        grid-template-columns: 220px minmax(0, 1.7fr);
    }

    .pm-right {
        display: none; /* could become slide-out later */
    }

    .pm-member-card {
        grid-template-columns: 42px minmax(0, 1.6fr);
    }

    .pm-member-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0.3rem;
    }
}

@media (max-width: 720px) {
    .pm-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pm-sidebar {
        display: none;
    }

    .pm-main {
        padding-inline: 0.9rem;
    }

    .pm-member-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .pm-status-pill {
        display: none;
    }
}

/* ==========================================================================
   Login Page Layout
   ========================================================================== */

body.login-page {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #10151f 0%, #050505 60%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Header bar on login page */
body.login-page header {
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid rgba(61, 224, 196, 0.25);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* override base brand for login/header */
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-main), var(--accent-alt));
    box-shadow: 0 0 10px rgba(61, 224, 196, 0.7);
}

.brand-text-main {
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
}

.brand-text-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-link {
    color: var(--accent-main);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Center main content */
body.login-page main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* ==========================================================================
   Login Card
   ========================================================================== */

.login-container {
    background: var(--bg-secondary);
    width: 380px;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(61, 224, 196, 0.2);
    border: 1px solid rgba(61, 224, 196, 0.25);
}

.login-title {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--accent-main);
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

/* Form fields */
#login-form > div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.1rem;
}

#login-form label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.input {
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--accent-alt);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--accent-main);
    box-shadow: 0 0 8px rgba(61, 224, 196, 0.35);
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.4rem;
    border: none;
    border-radius: 6px;
    background: var(--accent-main);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    background: var(--accent-alt);
}

/* Extra links */
.extra-links {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.85rem;
}

.extra-links a {
    color: var(--accent-main);
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* Footer */
body.login-page footer {
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(61, 224, 196, 0.15);
    background: rgba(5, 5, 5, 0.9);
}

/* Ensure logout button is clickable above overlays, if any */
.nav-logout {
    position: relative;
    z-index: 9999;
    cursor: pointer;
}

/* Keep header/nav above any content overlays */
header,
.nav-container {
    position: relative;
    z-index: 1000;
}







/* =====================================================================
   WOLFRIFT — UPGRADED NEON BUTTON STYLE (GLOW + PILL + ANIMATED)
   ===================================================================== */

.wr-btn,
#createDenBtn,
#addCategoryBtn,
#addChannelUncatBtn,
.server-add,
.den-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0.55rem 1rem !important;
    border-radius: 999px !important; /* pill shape */

    background: linear-gradient(
        160deg,
        rgba(10, 22, 28, 0.9),
        rgba(5, 5, 5, 0.95)
    ) !important;

    border: 1px solid rgba(61, 224, 196, 0.45) !important;
    color: var(--accent-main) !important;

    font-size: 0.86rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;

    cursor: pointer !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease !important;
}

/* Hover — neon ring + glow */
.wr-btn:hover,
#createDenBtn:hover,
#addCategoryBtn:hover,
#addChannelUncatBtn:hover,
.server-add:hover,
.den-button:hover {
    border-color: var(--accent-main) !important;
    background: radial-gradient(
        circle at 40% 0%,
        rgba(61, 224, 196, 0.18),
        rgba(5, 5, 5, 0.95)
    ) !important;

    box-shadow:
        0 0 12px rgba(61, 224, 196, 0.55),
        0 0 20px rgba(61, 224, 196, 0.18) inset !important;

    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Active — pressed in */
.wr-btn:active,
#createDenBtn:active,
#addCategoryBtn:active,
#addChannelUncatBtn:active,
.server-add:active,
.den-button:active {
    transform: scale(0.97) !important;
    box-shadow: 0 0 6px rgba(61, 224, 196, 0.35) inset !important;
}

/* Make create-den full width */
#createDenBtn {
    width: 100% !important;
    margin-top: 0.75rem !important;
}

/* Tiny floating + buttons */
#addCategoryBtn,
#addChannelUncatBtn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
}

/* Optional: icon spacing */
.wr-btn i,
#addCategoryBtn i,
#addChannelUncatBtn i {
    margin-right: 0.4rem !important;
}



/* =====================================================================
   WOLFRIFT — DEN PAGE BUTTONS (GLOBAL FOR DEN VIEW)
   ===================================================================== */

.den-page button,
.den-page .den-button,
.den-page .server-add,
.den-page #createDenBtn,
.den-page #addCategoryBtn,
.den-page #addChannelUncatBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0.55rem 1rem !important;
    border-radius: 999px !important; /* pill */

    background: linear-gradient(
        160deg,

        rgba(10, 22, 28, 0.9),
        rgba(5, 5, 5, 0.96)
    ) !important;


    border: 1px solid rgba(61, 224, 196, 0.45) !important;
    color: var(--accent-main) !important;



    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;


    cursor: pointer !important;


    transition:
        background 0.2s ease,
        border-color 0.2s ease,

        box-shadow 0.25s ease,
        transform 0.15s ease !important;


    background-image: none !important; /* kill default white */
}



/* Hover glow */
.den-page button:hover,
.den-page .den-button:hover,
.den-page .server-add:hover,
.den-page #createDenBtn:hover,
.den-page #addCategoryBtn:hover,
.den-page #addChannelUncatBtn:hover {
    border-color: var(--accent-main) !important;
    background: radial-gradient(
        circle at 40% 0%,
        rgba(61, 224, 196, 0.2),
        rgba(5, 5, 5, 0.96)
    ) !important;
    box-shadow:
        0 0 12px rgba(61, 224, 196, 0.55),
        0 0 20px rgba(61, 224, 196, 0.18) inset !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Active press */
.den-page button:active,
.den-page .den-button:active,
.den-page .server-add:active,
.den-page #createDenBtn:active,
.den-page #addCategoryBtn:active,
.den-page #addChannelUncatBtn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 0 6px rgba(61, 224, 196, 0.35) inset !important;
}

/* Full-width create-den button if you use one */
.den-page #createDenBtn {
    width: 100% !important;
    margin-top: 0.75rem !important;
}

/* Smaller inline + buttons */
.den-page #addCategoryBtn,
.den-page #addChannelUncatBtn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
}






/* =========================
   Message context menu + reaction picker
   (force default hidden)
   ========================= */

#messageContextMenu,
#reactionPicker {
  display: none;
  position: fixed;
  z-index: 9999;
}

/* optional: basic styling in case earlier block broke */
#messageContextMenu {
  background: #05070b;
  border-radius: 0.5rem;
  border: 1px solid rgba(61, 224, 196, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  padding: 0.25rem;
  font-size: 0.8rem;
}

#messageContextMenu button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary, #fff);
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

#messageContextMenu button:hover {
  background: rgba(61, 224, 196, 0.15);
}

#reactionPicker {
  background: #05070b;
  border-radius: 0.5rem;
  border: 1px solid rgba(61, 224, 196, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  padding: 0.25rem;
  font-size: 1rem;
}

#reactionPicker button {
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.2rem;
  cursor: pointer;
}



