/* style.css - Avancerad och optimerad styling för  */

/* --------------------------------------------------------------------------
   GLOBAL RESPONSIVE DESIGN - ENTIRE WEBSITE
   Mobile First Approach (Mobile < 640px | Tablet 640-1023px | Desktop > 1024px)
   ** IMPORTANT: Respect Tailwind's breakpoints - sm:, md:, lg: **
-------------------------------------------------------------------------- */

/* ===== MOBILE FIRST (< 640px) ===== */
@media (max-width: 640px) {
    * { box-sizing: border-box; }
    
    body { 
        font-size: 14px !important;
        overflow-x: hidden;
    }
    
    /* === Container & Layout === */
    .container { padding: 0.75rem; }
    
    /* === Cards - minimal override === */
    .glass-card { padding: 1rem; }
    
    /* === Forms === */
    input, select, textarea { 
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    /* === Buttons === */
    button { font-size: 0.875rem; }
    
    /* === Text - minimal === */
    body { line-height: 1.5; }
    
    /* === Display Utilities === */
    .hidden-mobile { display: none !important; }
}

/* ===== TABLET (640px - 1023px) ===== */
@media (min-width: 641px) and (max-width: 1023px) {
    body { font-size: 15px; }
    
    .container { padding: 1rem; }
    .glass-card { padding: 1.25rem; }
}

/* ===== DESKTOP (> 1024px) ===== */
@media (min-width: 1024px) {
    body { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Profile page layout - grid-based responsive layout
-------------------------------------------------------------------------- */

@media (max-width: 1023px) {
    aside.lg\:col-span-4 {
        width: 100%;
        position: static !important;
    }
    aside.lg\:col-span-4 > div {
        position: static !important;
    }
}

@media (min-width: 1024px) {
    aside.lg\:col-span-4 > div {
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}

/* Profile page specific responsive */
@media (max-width: 640px) {
    /* Profile header */
    .profile-header-content { 
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .profile-avatar { 
        width: 6rem !important; 
        height: 6rem !important;
    }
    
    .profile-name {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    /* Stats grid - single column on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Info grid - single column */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Friends grid - 2 columns on small mobile */
    .friends-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    /* Buttons - stack vertically */
    .button-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .button-group button,
    .button-group form {
        width: 100% !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablet adjustments */
    .profile-avatar { 
        width: 7rem !important; 
        height: 7rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .friends-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* --------------------------------------------------------------------------
   Banned accounts admin page - follows the site's blue design system
-------------------------------------------------------------------------- */

.ban-admin-shell { position: relative; overflow: hidden; }

/* Compact dashboard profile side menu */
.profile-side-menu {
    border-radius: 1.15rem !important;
}
.profile-side-link {
    min-height: 2.55rem;
    line-height: 1.1;
}
.profile-side-link i {
    opacity: 0.82;
}
.profile-side-link:hover i,
.profile-side-link.bg-primary\/10 i {
    opacity: 1;
}
@media (min-width: 1024px) {
    .profile-side-menu {
        max-height: calc(100vh - 7rem);
        overflow: hidden;
    }
    .profile-side-menu > div:last-child {
        max-height: calc(100vh - 11.3rem);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(96, 165, 250, 0.32) transparent;
    }
    .profile-side-menu > div:last-child::-webkit-scrollbar {
        width: 6px;
    }
    .profile-side-menu > div:last-child::-webkit-scrollbar-thumb {
        background: rgba(96, 165, 250, 0.32);
        border-radius: 999px;
    }
}
.ban-hero,
.ban-panel,
.ban-table-card,
.ban-stat {
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.20);
    background: rgba(17, 37, 71, 0.72);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.ban-hero { border-radius: 1.25rem; padding: clamp(1.25rem, 2.6vw, 2.25rem); }
.ban-panel,
.ban-table-card { border-radius: 1rem; }
.ban-panel::before,
.ban-table-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(#60A5FA, #2563eb);
    opacity: 0.8;
}
.ban-stat { border-radius: 0.9rem; padding: 1rem 1.1rem; overflow: hidden; }
.ban-stat::after {
    content: '';
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    width: 2.4rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.48);
}
.ban-soft-input {
    background: rgba(11, 27, 54, 0.82) !important;
    border-color: rgba(96, 165, 250, 0.22) !important;
    border-radius: 0.75rem !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.ban-soft-input:focus {
    border-color: rgba(96, 165, 250, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}
.ban-user-card {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(11, 27, 54, 0.72);
    border-radius: 0.8rem;
}
.ban-user-card:hover { border-color: rgba(96, 165, 250, 0.72); background: rgba(17, 37, 71, 0.92); }
.ban-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.ban-list-area { order: 1; min-width: 0; }
.ban-action-panel { order: 2; }
.ban-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 0.7rem; align-items: center; }
.ban-segment {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(11, 27, 54, 0.74);
    border-radius: 0.85rem;
    padding: 0.25rem;
    display: inline-flex;
    gap: 0.25rem;
}
.ban-segment .filter-btn { border-radius: 0.65rem !important; background: transparent !important; color: #cbd5e1 !important; }
.ban-segment .bg-blue-600,
.ban-segment .bg-red-600,
.ban-segment .bg-amber-600 {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.ban-danger-action {
    background: #2563eb !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.8rem !important;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}
.ban-danger-action:hover { background: #1d4ed8 !important; }
.ban-neutral-action {
    background: rgba(17, 37, 71, 0.88) !important;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 0.8rem !important;
    color: #bfdbfe !important;
}
.ban-table-scroll { width: 100%; overflow-x: visible; }
.ban-accounts-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 0.65rem;
    padding: 0.25rem 0.65rem 0.85rem;
}
.ban-col-user { width: 36%; }
.ban-col-date { width: 14%; }
.ban-col-status { width: 17%; }
.ban-col-action { width: 15%; }
.ban-th {
    padding: 0.9rem 0.75rem;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: normal;
    line-height: 1.15;
}
.ban-th-action { text-align: right; }
.ban-td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}
.ban-user-td { padding-left: 1.1rem; }
.ban-action-td { padding-right: 1rem; }
.ban-user-meta,
.ban-user-name,
.ban-email,
.ban-nickname {
    min-width: 0;
}
.ban-nickname,
.ban-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ban-avatar {
    flex: 0 0 3rem;
}
.ban-date-td {
    font-weight: 800;
    line-height: 1.2;
}
.ban-date-main,
.ban-date-time,
.ban-date-stack span {
    display: block;
}
.ban-date-time {
    margin-top: 0.12rem;
    color: #cbd5e1;
}
.ban-date-pill,
.ban-status-pill {
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
}
.ban-date-stack {
    min-width: 0;
    line-height: 1.15;
}
.ban-status-pill {
    font-size: 0.9rem;
    white-space: nowrap;
}
.ban-action-form {
    width: 100%;
}
.ban-unban-btn {
    width: 100%;
    max-width: 8.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
}
.ban-unban-btn i {
    flex: 0 0 auto;
}
.ban-table-card thead { background: transparent !important; border: 0 !important; }
.ban-table-card tbody tr {
    background: rgba(11, 27, 54, 0.72);
    outline: 1px solid rgba(96, 165, 250, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.ban-table-card tbody tr:hover { background: rgba(17, 37, 71, 0.92) !important; outline-color: rgba(96, 165, 250, 0.40); }
.ban-table-card tbody td:first-child { border-radius: 0.8rem 0 0 0.8rem; }
.ban-table-card tbody td:last-child { border-radius: 0 0.8rem 0.8rem 0; }
.ban-side-panel { position: sticky; top: 6rem; }
.ban-mini-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #60A5FA; font-weight: 900; }
@media (max-width: 1460px) {
    .ban-page-grid { grid-template-columns: 1fr; }
    .ban-side-panel { position: relative; top: auto; }
}
@media (max-width: 1120px) {
    .ban-col-user { width: 34%; }
    .ban-col-date { width: 15%; }
    .ban-col-status { width: 18%; }
    .ban-col-action { width: 16%; }
    .ban-th,
    .ban-td {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
    .ban-status-pill,
    .ban-date-pill {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        font-size: 0.82rem;
    }
}
@media (max-width: 780px) {
    .ban-toolbar { grid-template-columns: 1fr; }
    .ban-segment { width: 100%; overflow-x: auto; }
    .ban-table-scroll { overflow-x: visible; }
    .ban-accounts-table,
    .ban-accounts-table thead,
    .ban-accounts-table tbody,
    .ban-accounts-table tr,
    .ban-accounts-table td {
        display: block;
        width: 100%;
    }
    .ban-accounts-table { padding: 0.75rem; border-spacing: 0; }
    .ban-accounts-table thead { display: none; }
    .ban-row {
        margin-bottom: 0.85rem;
        border-radius: 0.9rem;
        overflow: hidden;
    }
    .ban-td {
        padding: 0.8rem 1rem;
    }
    .ban-user-td {
        padding-top: 1rem;
    }
    .ban-date-td,
    .ban-expire-td,
    .ban-status-td,
    .ban-action-td {
        text-align: left;
    }
    .ban-date-td::before,
    .ban-expire-td::before,
    .ban-status-td::before,
    .ban-action-td::before {
        display: block;
        margin-bottom: 0.35rem;
        color: #94a3b8;
        font-size: 0.65rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .ban-date-td::before { content: 'Bannad sedan'; }
    .ban-expire-td::before { content: 'Löper ut'; }
    .ban-status-td::before { content: 'Status'; }
    .ban-action-td::before { content: 'Åtgärd'; }
    .ban-date-pill,
    .ban-status-pill,
    .ban-unban-btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    .ban-table-card tbody td:first-child,
    .ban-table-card tbody td:last-child {
        border-radius: 0;
    }
}

/* --------------------------------------------------------------------------
   Global responsive shell (mobil, surfplatta, TV, smala / ultrabreda vy)
-------------------------------------------------------------------------- */

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
canvas,
svg,
iframe,
table {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
    min-width: 0;
}

/* Huvud vy: explicit lager ordning även om Tailwind-CDN blockeras eller dröjer */
nav#navbar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 200;
}

/* Flash/toast: säkerställd stacking + fixed även om utility-klasser inte laddas */
#toast-container {
    position: fixed;
    left: 50%;
    right: auto;
    top: calc(6rem + env(safe-area-inset-top, 0px));
    transform: translateX(-50%);
    z-index: 250;
    width: 100%;
    max-width: min(28rem, calc(100vw - 1rem));
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Padding under absolut nav + innehåll över partiklar (mobilkompositorkonflikter) */
#site-main.site-main-padding {
    position: relative;
    z-index: 100;
    padding-top: calc(5rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 1024px) {
    #site-main.site-main-padding {
        padding-top: calc(5.25rem + env(safe-area-inset-top, 0px));
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 112%;
    }
}

@media (orientation: landscape) and (max-height: 540px) {
    .home-hero-shell {
        min-height: unset !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Innehållsbilder: undvik horisontell scroll på små skärmar */
.news-sheet img,
.news-sheet video,
.rich-text-content img {
    max-width: 100%;
    height: auto;
}

.mobile-nav-drawer {
    max-height: 85vh;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
    nav#navbar {
        background: rgba(17, 37, 71, 0.92) !important;
        border-bottom-color: rgba(42, 75, 141, 0.95) !important;
        box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42) !important;
    }

    #navbar > div:first-child {
        padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    }

    #navbar .nav-brand {
        padding-right: 0 !important;
    }

    #mobile-menu-btn {
        width: 3rem;
        height: 3rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(96, 165, 250, 0.34);
        border-radius: 0.65rem;
        background: rgba(59, 130, 246, 0.14);
        color: rgba(255, 255, 255, 0.95) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(59, 130, 246, 0.10);
    }

    #mobile-menu-btn:hover,
    #mobile-menu-btn[aria-expanded="true"] {
        background: rgba(37, 99, 235, 0.55);
        border-color: rgba(96, 165, 250, 0.60);
    }

    #mobile-menu {
        top: 100%;
        z-index: 220;
        background:
            linear-gradient(180deg, rgba(17, 37, 71, 0.98), rgba(11, 27, 54, 0.98)) !important;
        border-top: 1px solid rgba(42, 75, 141, 0.95) !important;
        border-bottom: 1px solid rgba(42, 75, 141, 0.95);
        box-shadow: 0 24px 56px rgba(2, 6, 23, 0.58);
        max-height: min(72vh, 34rem);
    }

    #mobile-menu > div {
        width: min(100%, 38rem);
        margin-inline: auto;
        padding: 0.9rem max(0.9rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(0.9rem, env(safe-area-inset-left, 0px)) !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem !important;
        text-align: left !important;
    }

    #mobile-menu a {
        position: relative;
        overflow: hidden;
        min-height: 2.75rem;
        padding: 0.62rem 0.8rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.6rem !important;
        border: 1px solid rgba(96, 165, 250, 0.28) !important;
        border-radius: 0.65rem !important;
        background: rgba(59, 130, 246, 0.14) !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.01em;
        line-height: 1.15 !important;
        text-align: left !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(59, 130, 246, 0.10) !important;
    }

    #mobile-menu a::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.00) 42%, transparent 100%);
        transform: translateX(-140%);
        transition: transform 600ms ease;
        pointer-events: none;
    }

    #mobile-menu a:hover,
    #mobile-menu a:focus-visible {
        background: rgba(37, 99, 235, 0.55) !important;
        border-color: rgba(96, 165, 250, 0.60) !important;
        color: #ffffff !important;
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24), 0 0 34px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    }

    #mobile-menu a:hover::before,
    #mobile-menu a:focus-visible::before {
        transform: translateX(140%);
    }

    #mobile-menu a i {
        width: 1.1rem;
        min-width: 1.1rem;
        height: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(191, 219, 254, 0.98);
        font-size: 0.88rem;
    }
}

@media (max-width: 520px) {
    #site-main.site-main-padding {
        padding-top: calc(4.65rem + env(safe-area-inset-top, 0px));
    }

    .home-hero-shell {
        min-height: auto !important;
        padding-top: 3.1rem !important;
        padding-bottom: 4rem !important;
    }

    .home-hero-shell h1 {
        font-size: clamp(2rem, 11vw, 3.4rem) !important;
        line-height: 1.04 !important;
        margin-bottom: 1rem !important;
    }

    .home-hero-shell p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.35rem !important;
    }

    .hero-cta {
        width: min(100%, 20rem);
        min-height: 3.25rem;
        justify-content: center;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 1rem !important;
    }

    #nyheter {
        padding-top: 1.25rem !important;
        padding-bottom: 4rem !important;
    }

    #nyheter > .w-full {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .home-news-layout__grid {
        gap: 1.1rem;
    }

    #home-server-status-panel .home-status-profile-card {
        padding: 1rem !important;
        border-radius: 1.15rem !important;
        background:
            radial-gradient(circle at top right, rgba(96, 165, 250, 0.13), transparent 42%),
            linear-gradient(180deg, rgba(17, 45, 87, 0.90), rgba(8, 24, 52, 0.94)) !important;
    }

    #home-server-status-panel .home-status-profile-card > .flex:first-child {
        align-items: center !important;
    }

    #home-server-status-panel .home-status-profile-card h3 {
        font-size: 1.28rem !important;
        line-height: 1.15 !important;
    }

    #home-server-status-panel [data-home-status-hostname] {
        font-size: 0.68rem !important;
        letter-spacing: 0.07em !important;
    }

    #home-server-status-panel .home-status-profile-card .w-12 {
        width: 3rem !important;
        height: 3rem !important;
        border-radius: 1rem !important;
    }

    #home-server-status-panel .home-status-profile-card .flex-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        gap: 0.7rem !important;
        align-items: center !important;
    }

    #home-server-status-panel [data-home-status-state-pill] {
        justify-content: center;
        min-width: 6.5rem;
        padding: 0.7rem 0.95rem !important;
        font-size: 0.86rem !important;
    }

    #home-server-status-panel .home-status-profile-card code {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    #mobile-menu > div {
        grid-template-columns: 1fr;
    }
}

@media (pointer: coarse) {
    /* Större träftyta för meny / knappar där tema inte redan gör det */
    #mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Header & Logo Sizing Fixes */
.site-logo-link {
    border-radius: 0.85rem;
    outline: none;
    transition: transform 0.18s ease, filter 0.18s ease;
}
.site-logo-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
.site-logo-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}
.site-logo {
    height: 64px !important; /* Navbar h-64 cap; konkret höjd sätts per breakpoint */
    width: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Mobil: bred logga får inte täcka hamburgare eller rinna över viewport */
@media (max-width: 1023px) {
    #navbar .nav-brand .site-logo {
        max-width: min(220px, calc(100vw - 5rem)) !important;
        height: 44px !important;
        max-height: 44px !important;
    }

    #navbar .nav-brand .site-logo-fallback {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        font-size: 1.125rem !important;
    }

    /* Låter logotyta krympa bredvid menyknappen */
    #navbar .nav-brand {
        max-width: calc(100% - 3.25rem);
    }
}
.floating-logo {
    will-change: transform;
    animation: floatingLogo 4s ease-in-out infinite;
}

/* Global Dark Background Fallback */
body.bg-dark {
    background-color: #0B1B36 !important;
}

.bg-card {
    background-color: #112547 !important;
}

.bg-card\/40 {
    background-color: rgba(17, 37, 71, 0.40) !important;
}

.bg-card\/90,
.bg-card\/95 {
    background-color: rgba(17, 37, 71, 0.92) !important;
}


.bg-dark\/95, .bg-dark\/90 {
    background-color: rgba(11, 27, 54, 0.92) !important;
}
.bg-dark\/60, .bg-dark\/40, .bg-dark\/20 {
    background-color: rgba(11, 27, 54, 0.6) !important;
}

.text-white {
    color: #ffffff !important;
}

.bg-primary {
    background-color: #60A5FA !important;
}

.text-primary {
    color: #60A5FA !important;
}

.border-primary {
    border-color: #60A5FA !important;
}

.border-white\/10, .border-white\/5 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Bakgrundseffekt: under all interaktivt innehåll (formulär, länkar) men synlig mellan paneler */
#particles-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none !important;
    isolation: isolate;
}

#particles-js canvas {
    width: 100% !important;
    height: 100% !important;
    opacity: 0.75;
    mix-blend-mode: screen;
    pointer-events: none !important;
}

/*
  Touch / inbyggda WebView (t.ex. Brave Android): mix-blend + fullscreen canvas kan dölja
  syskonlager vid kompositorkonstigheter — kör linjär blandning på grov pekare istället.
*/
@media (hover: none) and (pointer: coarse) {
    #particles-js canvas {
        mix-blend-mode: normal;
        opacity: 0.42;
    }

    nav#navbar {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

@keyframes floatingLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-logo {
        animation: none !important;
    }
}

#navbar .nav-btn {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
    height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 9px;
    border: 1px solid rgba(96, 165, 250, 0.28) !important;
    background: rgba(59, 130, 246, 0.14) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(59, 130, 246, 0.10) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

#navbar .nav-btn i {
    font-size: 0.88em;
}

#navbar .nav-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.00) 42%, transparent 100%);
    transform: translateX(-140%);
    transition: transform 600ms ease;
    pointer-events: none;
}

#navbar .nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(147, 197, 253, 0.42) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18), 0 0 28px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

#navbar .nav-btn:hover::before {
    transform: translateX(140%);
}

#navbar .nav-btn:active {
    transform: translateY(0) scale(0.985);
}

#navbar .nav-btn.is-active {
    background: rgba(37, 99, 235, 0.55) !important;
    border-color: rgba(96, 165, 250, 0.60) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24), 0 0 34px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    color: #ffffff;
}

#navbar .nav-btn.is-active::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: rgba(96, 165, 250, 0.95);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    #navbar .nav-btn {
        transition: none !important;
    }
    #navbar .nav-btn::before {
        display: none !important;
    }
    #navbar .nav-btn.is-active::after {
        display: none !important;
    }
}
.site-logo-fallback {
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
}

.site-name-wrapper {
    /* Nu använder vi flexbox istället för absolute position */
}

.site-name {
    white-space: nowrap;
    display: inline-block;
}

.header-menu-wrapper {
    /* Låt Tailwind sköta centreringen */
}

.site-name-wrapper {
    max-width: 100%;
    padding-right: 0.75rem;
}

.site-name {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
}

#navbar .nav-brand {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: min(42vw, 520px) !important;
    padding-right: 1rem;
}

#navbar .site-name-wrapper {
    min-width: 0;
    max-width: none;
    overflow: visible;
}

#navbar .site-name {
    max-width: none;
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
}

.header-menu-wrapper {
    min-width: 0;
    overflow-x: visible;
    overflow-y: visible;
    justify-content: flex-start !important;
    padding-inline: 0.5rem;
}

.header-menu-wrapper::-webkit-scrollbar {
    display: none;
}

.header-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: auto;
    min-width: max-content;
    max-width: none;
    margin: 0;
    position: relative;
    left: auto;
}

.header-menu-list > * {
    flex: 0 0 auto;
}

.header-actions-spacer {
    display: none !important;
}

@media (min-width: 1536px) {
    .header-menu-wrapper {
        padding-inline: 0.75rem;
    }
}

.hero-cta {
    position: relative;
    isolation: isolate;
    border-radius: 10px !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

.hero-cta::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.00) 58%);
    opacity: 0.55;
    pointer-events: none;
}

.hero-cta:focus-visible {
    outline: none;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.hero-cta:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.hero-cta-primary {
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28), 0 0 26px rgba(37, 99, 235, 0.22);
}

.hero-cta-primary:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32), 0 0 34px rgba(37, 99, 235, 0.30);
}

.hero-cta-discord {
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28), 0 0 26px rgba(88, 101, 242, 0.22);
}

.hero-cta-discord:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32), 0 0 34px rgba(88, 101, 242, 0.30);
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta {
        transition: none !important;
    }
}

.home-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.home-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(11, 27, 54, 0.42);
    border: 1px solid rgba(96, 165, 250, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-pagination__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
}

.home-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
}

.home-pagination__btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.home-pagination__btn:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.20);
    border-color: rgba(147, 197, 253, 0.42);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-pagination__btn:active {
    transform: translateY(0) scale(0.985);
}

.home-pagination__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 12px 30px rgba(37, 99, 235, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-pagination__btn.is-active {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.90), rgba(37, 99, 235, 0.55));
    border-color: rgba(96, 165, 250, 0.70);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.26), 0 0 26px rgba(59, 130, 246, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.home-pagination__btn--nav {
    min-width: 132px;
    padding: 0 14px;
    justify-content: center;
    gap: 0.55rem;
}

.home-pagination__btn--nav i {
    font-size: 0.95rem;
}

.home-pagination__navtext {
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
}

.home-pagination__btn.is-disabled {
    opacity: 0.38;
    pointer-events: none;
    filter: saturate(0.8);
}

.home-pagination__dots {
    padding: 0 8px;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* YouTube-like Clip Modal */
.clip-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clip-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.clip-modal-container {
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.clip-modal.is-active .clip-modal-container {
    transform: scale(1);
}

.clip-modal-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 100%;
}

@media (max-width: 1100px) {
    .clip-modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .clip-modal-container {
        height: 95vh;
    }
}

.clip-modal-main {
    background: #000;
    display: flex;
    flex-direction: column;
}

.clip-modal-video-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
}

.clip-modal-video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clip-modal-info {
    padding: 2rem;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.clip-modal-sidebar {
    background: #0B1B36;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.clip-modal-comments {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.clip-modal-comment-input {
    padding: 1.5rem;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clip-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1010;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.clip-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}


.home-pagination__meta {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.95);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(96, 165, 250, 0.14);
}

@media (max-width: 420px) {
    .home-pagination__btn {
        min-width: 40px;
        height: 40px;
    }
    .home-pagination__btn--nav {
        min-width: 46px;
        padding: 0 12px;
    }
    .home-pagination__navtext {
        display: none;
    }
}

/* Home: nyheter centrerade mot mitten + serverstatus i högerkolumn (ingen krock) */
.home-news-layout__grid {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.home-news-layout__balance {
    display: none;
}

@media (max-width: 1023px) {
    /* Serverstatus först på mobil så den inte hamnar långt ner under alla nyheter */
    .home-news-layout__aside {
        order: -1;
    }

    .home-news-layout__main {
        order: 0;
    }
}

@media (min-width: 1024px) {
    .home-news-layout__aside,
    .home-news-layout__main {
        order: unset;
    }

    .home-news-layout__balance {
        display: block;
        min-width: 0;
        pointer-events: none;
    }

    .home-news-layout__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 56rem) minmax(17.5rem, 20rem);
        column-gap: 2rem;
    }

    .home-news-layout__aside {
        position: sticky;
        top: 4.75rem;
        z-index: 5;
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
    }
}

/* Nyhetsvideo: teaser ser ut som video-ruta; spelaren visas efter "Visa video" */
.news-sheet__video--wrap .news-sheet__video-teaser {
    min-height: 11rem;
}

.news-sheet__video-teaser__film {
    background: repeating-linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.95) 0px,
        rgba(15, 23, 42, 0.95) 10px,
        rgba(30, 58, 138, 0.35) 10px,
        rgba(30, 58, 138, 0.35) 14px
    );
    box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.12);
}

/* Home serverstatus (profil-/dashboard-stil): lätt grön kant när online */
[data-home-status-root].home-status-profile-card.is-online {
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.14),
        0 22px 55px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-sheet {
    position: relative;
    border-radius: 18px !important;
    background:
        linear-gradient(145deg, rgba(20, 55, 105, 0.92), rgba(8, 25, 54, 0.96) 48%, rgba(7, 18, 39, 0.98)) !important;
    border-color: rgba(96, 165, 250, 0.26) !important;
    box-shadow:
        0 24px 60px rgba(2, 6, 23, 0.42),
        0 0 0 1px rgba(96, 165, 250, 0.07),
        0 0 38px rgba(59, 130, 246, 0.14);
    isolation: isolate;
}

.news-sheet__header {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.20), rgba(7, 26, 54, 0.58)),
        linear-gradient(180deg, rgba(21, 48, 89, 0.82), rgba(8, 22, 48, 0.36)) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.news-sheet__icon {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.36) !important;
    color: #bfdbfe !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 24px rgba(37, 99, 235, 0.16);
}

.news-sheet__date {
    color: rgba(191, 219, 254, 0.78) !important;
}

.news-sheet__body {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(13, 39, 78, 0.34), rgba(7, 18, 39, 0.18)) !important;
}

.news-sheet__content-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.news-sheet__headline-block {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 1.25rem;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(7, 26, 54, 0.66));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 36px rgba(2, 6, 23, 0.20);
}

.news-sheet__headline-block::after {
    content: '';
    position: absolute;
    inset: auto 1.1rem 0 1.1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.42), transparent);
}

.news-sheet__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    padding: 0.38rem 0.65rem;
    color: #bfdbfe;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.news-sheet__body::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(147, 197, 253, 0.06), rgba(255, 255, 255, 0.00) 55%),
        repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.016) 0px, rgba(96, 165, 250, 0.016) 1px, rgba(255, 255, 255, 0.00) 2px, rgba(255, 255, 255, 0.00) 10px);
    opacity: 0.9;
    mix-blend-mode: overlay;
}

.news-sheet__title {
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(37, 99, 235, 0.14);
    font-size: clamp(1.35rem, 1.85vw, 1.75rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
    margin: 0;
    max-width: 38ch;
}

.news-sheet__article-panel {
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(7, 26, 54, 0.70), rgba(7, 18, 39, 0.58));
    padding: clamp(1rem, 1.8vw, 1.35rem) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.news-sheet__section-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    color: rgba(147, 197, 253, 0.90);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-sheet__section-label::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #60a5fa;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.58);
}

.news-sheet__copy {
    position: relative;
    max-width: 70ch;
    padding: 1.05rem 0 0;
    overflow: visible;
}

.news-sheet__article-panel.news-sheet__copy {
    max-width: none;
}

.news-sheet__article-panel.news-sheet__copy::before,
.news-sheet__article-panel.news-sheet__copy::after {
    display: none;
}

.news-sheet__copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.96), rgba(37, 99, 235, 0.20));
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.20);
}

.news-sheet__copy::after {
    content: '';
    position: absolute;
    top: -0.18rem;
    left: 5.7rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(147, 197, 253, 0.9);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.news-sheet__copy > * {
    position: relative;
    z-index: 1;
}

.news-sheet__copy--preview::after {
    background: rgba(147, 197, 253, 0.9);
}

.news-sheet__preview {
    margin: 0;
    max-width: none;
    color: rgba(219, 234, 254, 0.94);
    line-height: 1.82;
    font-size: clamp(1rem, 1.08vw, 1.08rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 650;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    text-wrap: pretty;
}

.news-sheet__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    border: 0;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    padding: 0.55rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-sheet__toggle:hover {
    border-color: rgba(147, 197, 253, 0.48);
    background: rgba(37, 99, 235, 0.20);
    color: #dbeafe;
    transform: translateY(-1px);
}

.news-sheet__toggle.is-open {
    border-color: rgba(96, 165, 250, 0.34);
}

.news-sheet__content {
    position: relative;
    max-width: none;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: rgba(219, 234, 254, 0.94) !important;
    line-height: 1.82 !important;
    font-weight: 600;
    z-index: 1;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.news-sheet__content--expanded {
    padding-top: 0.15rem;
}

.news-sheet__content > :last-child {
    margin-bottom: 0;
}

.news-sheet .rich-text-content h1,
.news-sheet .rich-text-content h2,
.news-sheet .rich-text-content h3 {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    letter-spacing: 0;
    color: #ffffff !important;
}

.news-sheet .rich-text-content h1 { font-size: clamp(1.35rem, 2vw, 1.72rem) !important; margin-top: 1.05em; margin-bottom: 0.6em; line-height: 1.18; overflow-wrap: anywhere; }
.news-sheet .rich-text-content h2 { font-size: clamp(1.18rem, 1.5vw, 1.42rem) !important; margin-top: 1.0em; margin-bottom: 0.55em; line-height: 1.24; overflow-wrap: anywhere; }
.news-sheet .rich-text-content h3 { font-size: clamp(1.06rem, 1.18vw, 1.22rem) !important; margin-top: 0.95em; margin-bottom: 0.45em; line-height: 1.3; overflow-wrap: anywhere; }
.news-sheet .rich-text-content h4 { font-size: 1.02rem !important; margin-top: 0.9em; margin-bottom: 0.4em; line-height: 1.32; overflow-wrap: anywhere; }
.news-sheet .rich-text-content h5 { font-size: 0.96rem !important; margin-top: 0.85em; margin-bottom: 0.35em; line-height: 1.34; overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 0.06em; }
.news-sheet .rich-text-content h6 { font-size: 0.9rem !important; margin-top: 0.8em; margin-bottom: 0.32em; line-height: 1.36; overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 0.08em; }

.news-sheet .rich-text-content p {
    color: rgba(219, 234, 254, 0.94) !important;
    font-size: 1.02rem !important;
    line-height: 1.82 !important;
    font-weight: 600 !important;
    margin-bottom: 1.05em !important;
}

.news-sheet .rich-text-content span,
.news-sheet .rich-text-content li,
.news-sheet .rich-text-content a,
.news-sheet .rich-text-content strong,
.news-sheet .rich-text-content em {
    font-size: 1.02rem !important;
    line-height: 1.82 !important;
}

.news-sheet .rich-text-content strong,
.news-sheet .rich-text-content b {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.news-sheet .rich-text-content ul,
.news-sheet .rich-text-content ol {
    margin-top: 0.55rem !important;
    margin-bottom: 1.15rem !important;
    padding-left: 1.3rem !important;
}

.news-sheet .rich-text-content li {
    color: rgba(219, 234, 254, 0.92) !important;
    margin-bottom: 0.48rem !important;
}

.news-sheet .rich-text-content [style*="font-size"] {
    font-size: inherit !important;
    line-height: inherit !important;
}

.news-sheet--dropcap .news-sheet__content > p:first-of-type::first-letter {
    float: left;
    font-size: 2.85em;
    line-height: 0.9;
    font-weight: 900;
    margin: 0.05em 0.16em 0 0;
    color: rgba(96, 165, 250, 0.95);
    text-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.news-sheet__footer {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.10), rgba(7, 26, 54, 0.58)),
        linear-gradient(180deg, rgba(8, 22, 48, 0.22), rgba(12, 34, 70, 0.66)) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.news-sheet [id^="comments-"] {
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.news-sheet [id^="comments-"] .bg-dark,
.news-sheet [id^="comments-"] .bg-dark\/50,
.news-sheet [id^="comments-"] .bg-dark\/80 {
    background: rgba(7, 26, 54, 0.72) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.news-sheet button[onclick*="comments-"] {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.30) !important;
    color: #bfdbfe !important;
}

.news-sheet button[onclick*="comments-"]:hover {
    background: rgba(37, 99, 235, 0.24) !important;
    color: #ffffff !important;
}

.news-comments-panel {
    margin-top: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(8, 28, 61, 0.88), rgba(6, 18, 41, 0.92));
    padding: clamp(1rem, 2vw, 1.35rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 42px rgba(2, 6, 23, 0.26);
}

.news-comments-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.16);
}

.news-comments-panel__title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.news-comments-panel__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.20);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}

.news-comments-panel__eyebrow {
    color: #93c5fd;
    font-size: 0.66rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.news-comments-panel__title h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 950;
}

.news-comments-panel__count {
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    padding: 0.45rem 0.75rem;
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
}

.news-comments-list {
    display: grid;
    gap: 0.9rem;
    max-height: 20rem;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-bottom: 1rem;
}

.news-comment-card {
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(13, 39, 78, 0.78), rgba(7, 18, 39, 0.72));
    padding: 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.news-comment-card:hover {
    border-color: rgba(147, 197, 253, 0.42);
    background: linear-gradient(135deg, rgba(22, 58, 112, 0.82), rgba(8, 24, 52, 0.76));
    transform: translateY(-1px);
}

.news-comment-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}

.news-comment-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.24);
}

.news-comment-card__avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
}

.news-comment-card__time {
    color: rgba(147, 197, 253, 0.62);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-comment-card__text {
    margin: 0;
    color: rgba(219, 234, 254, 0.92);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.news-comment-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.news-comment-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2rem;
    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.12);
    color: #bfdbfe;
    padding: 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 950;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.news-comment-action:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: rgba(147, 197, 253, 0.40);
    color: #ffffff;
}

.news-comment-action--danger {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.22);
    padding-inline: 0.65rem;
}

.news-comment-role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.news-comment-role--staff {
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.news-comment-role--verified {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.news-comment-media {
    margin-top: 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 1rem;
    background: rgba(7, 18, 39, 0.70);
    width: min(100%, 28rem);
}

.news-comment-media img {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
}

.news-comment-replies {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-left: clamp(1.2rem, 4vw, 3rem);
    padding-left: 1rem;
    border-left: 2px solid rgba(96, 165, 250, 0.18);
}

.news-comment-card--reply {
    background: linear-gradient(135deg, rgba(10, 32, 68, 0.76), rgba(6, 18, 41, 0.74));
}

.news-comments-empty,
.news-comments-notice {
    border: 1px dashed rgba(96, 165, 250, 0.26);
    border-radius: 1.1rem;
    background: rgba(7, 26, 54, 0.58);
    padding: 1.35rem;
    text-align: center;
    margin-bottom: 1rem;
}

.news-comments-empty i {
    color: #60a5fa;
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.news-comments-empty p,
.news-comments-notice p {
    margin: 0;
    color: #dbeafe;
    font-weight: 900;
}

.news-comments-empty span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(191, 219, 254, 0.64);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-comments-notice a {
    color: #93c5fd;
    font-weight: 950;
}

.news-comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(8, 28, 61, 0.86), rgba(6, 18, 41, 0.90));
    padding: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(2, 6, 23, 0.20);
}

.news-comment-form:focus-within {
    border-color: rgba(147, 197, 253, 0.58);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-comment-form__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.news-comment-form__field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 0.95rem;
    background: rgba(7, 18, 39, 0.55);
}

.news-comment-form__field i {
    color: #93c5fd;
}

.news-comment-form__field input,
.news-comment-form__field textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    outline: 0;
    font-size: 0.92rem;
    font-weight: 750;
    resize: vertical;
    min-height: 2.6rem;
}

.news-comment-form__field input::placeholder,
.news-comment-form__field textarea::placeholder {
    color: rgba(147, 197, 253, 0.46);
}

.news-comment-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 0.85rem;
    background: rgba(37, 99, 235, 0.12);
    color: #bfdbfe;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 900;
}

.news-comment-reply-target button {
    color: #dbeafe;
}

.news-comment-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0.45rem;
    width: auto;
    min-width: 0;
    min-height: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 0.85rem;
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.00) 48%),
        rgba(37, 99, 235, 0.42);
    color: #ffffff;
    padding: 0 1rem;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.news-comment-form__submit i {
    font-size: 0.88rem;
    flex: 0 0 auto;
}

.news-comment-form__submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    border-color: rgba(147, 197, 253, 0.62);
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.18), rgba(255, 255, 255, 0.00) 48%),
        rgba(37, 99, 235, 0.55);
}

.news-comment-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.news-comment-emoji-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.news-comment-emoji-row button,
.news-comment-tool,
.news-comment-gif {
    min-height: 2.25rem;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 0.75rem;
    background: rgba(37, 99, 235, 0.10);
    color: #bfdbfe;
    font-weight: 900;
}

.news-comment-emoji-row button {
    width: 2.25rem;
    font-size: 1rem;
}

.news-comment-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.75rem;
    cursor: pointer;
    font-size: 0.78rem;
}

.news-comment-gif {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.75rem;
    flex: 1 1 13rem;
    min-width: min(100%, 13rem);
}

.news-comment-gif input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.news-comment-file-name {
    color: rgba(191, 219, 254, 0.66);
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 640px) {
    .news-comment-form {
        grid-template-columns: 1fr;
    }

    .news-comment-form__main {
        grid-template-columns: 1fr;
    }

    .news-comment-form__submit {
        width: 100%;
    }

    .news-comment-card__top {
        align-items: flex-start;
    }

    .news-comment-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .news-comment-replies {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
    }
}

/* Rich Text Content (för TinyMCE nyheter och forum) */
.tinymce-content h1, .rich-text-content h1 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); font-weight: 900; margin-top: 1.1em; margin-bottom: 0.65em; line-height: 1.18; color: #ffffff; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tinymce-content h2, .rich-text-content h2 { font-size: clamp(1.35rem, 1.85vw, 1.75rem); font-weight: 850; margin-top: 1.15em; margin-bottom: 0.6em; line-height: 1.24; color: #f3f4f6; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tinymce-content h3, .rich-text-content h3 { font-size: clamp(1.15rem, 1.35vw, 1.45rem); font-weight: 800; margin-top: 1.1em; margin-bottom: 0.55em; line-height: 1.28; color: #e5e7eb; overflow-wrap: anywhere; }
.tinymce-content h4, .rich-text-content h4 { font-size: clamp(1.05rem, 1.15vw, 1.25rem); font-weight: 800; margin-top: 1.0em; margin-bottom: 0.5em; line-height: 1.3; color: rgba(226, 232, 240, 0.96); overflow-wrap: anywhere; }
.tinymce-content h5, .rich-text-content h5 { font-size: 1.05rem; font-weight: 800; margin-top: 0.95em; margin-bottom: 0.45em; line-height: 1.32; color: rgba(226, 232, 240, 0.92); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 0.06em; }
.tinymce-content h6, .rich-text-content h6 { font-size: 0.98rem; font-weight: 800; margin-top: 0.9em; margin-bottom: 0.4em; line-height: 1.34; color: rgba(203, 213, 225, 0.92); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: 0.08em; }
.tinymce-content p, .rich-text-content p { margin-bottom: 1.25em; line-height: 1.8; color: #d1d5db; font-size: 1.05rem; }
.tinymce-content ul, .rich-text-content ul { list-style-type: disc; margin-left: 1.5em; margin-bottom: 1.5em; color: #d1d5db; }
.tinymce-content ol, .rich-text-content ol { list-style-type: decimal; margin-left: 1.5em; margin-bottom: 1.5em; color: #d1d5db; }
.tinymce-content li, .rich-text-content li { margin-bottom: 0.5em; line-height: 1.7; }
.tinymce-content a, .rich-text-content a { color: #3b82f6; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.tinymce-content a:hover, .rich-text-content a:hover { color: #60a5fa; border-bottom-color: #60a5fa; }
.tinymce-content blockquote, .rich-text-content blockquote { border-left: 4px solid #3b82f6; padding-left: 1.25em; margin-left: 0; margin-bottom: 1.5em; color: #9ca3af; font-style: italic; background: rgba(59, 130, 246, 0.05); padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; }
.tinymce-content pre, .rich-text-content pre { background-color: #0f172a; padding: 1.25em; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 1.5em; border: 1px solid #1e293b; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.tinymce-content code, .rich-text-content code { background-color: #1e293b; padding: 0.2em 0.4em; border-radius: 0.375rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 0.875em; color: #e2e8f0; }
.tinymce-content img, .rich-text-content img { max-width: 100%; height: auto; border-radius: 0.75rem; margin-bottom: 1.5em; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.tinymce-content strong, .rich-text-content strong { color: #ffffff; font-weight: 700; }

.rules-page .rich-text-content {
    font-size: 1.12rem;
    line-height: 1.95;
}

.rules-page .rich-text-content h1 {
    font-size: 2.5em;
    margin-bottom: 0.6em;
}

.rules-page .rich-text-content h2 {
    margin-top: 1.35em;
    padding-top: 0.85em;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.rules-page .rich-text-content h3 {
    margin-top: 1.2em;
    color: rgba(226, 232, 240, 0.95);
}

.rules-page .rich-text-content ul {
    margin-left: 1.25em;
}

.rules-page .rich-text-content li {
    margin-bottom: 0.65em;
}

.rules-page .rules-lead {
    font-size: 1.15rem;
    color: rgba(226, 232, 240, 0.92);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(147, 197, 253, 0.16);
    padding: 14px 16px;
    border-radius: 16px;
}

.rules-page .rules-remember {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(2, 6, 23, 0.25));
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 18px;
    padding: 16px 16px;
    margin-top: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.28), 0 0 24px rgba(59, 130, 246, 0.14);
}

.rules-page .rules-remember-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.rules-page .rules-remember-title .rules-emoji {
    margin-right: 0;
}

.rules-page .rules-remember p {
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: 1.08rem;
    line-height: 1.85;
}

.rules-page .rules-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.18);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
    font-size: 16px;
    line-height: 1;
}

/* Custom News Cards Typography */
.news-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Admin Panel User Edit Form (Custom Design) */
.admin-edit-panel {
    background: linear-gradient(145deg, rgba(17, 37, 71, 0.4) 0%, rgba(11, 27, 54, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.admin-edit-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-edit-section-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logs-console {
    height: 520px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.logs-console > div {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 10px 10px;
}

.logs-console details summary {
    list-style: none;
}

.logs-console details summary::-webkit-details-marker {
    display: none;
}

.admin-input-group {
    margin-bottom: 1.25rem;
}

.admin-input-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.admin-input-wrapper {
    position: relative;
    min-width: 0;
}

.admin-input-icon {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    transition: color 0.3s ease;
}

.admin-input-field {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem 0.875rem 3rem !important;
    font-size: 0.875rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.admin-input-field::placeholder,
.admin-select::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.55);
    opacity: 1;
}

select.admin-input-field {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.9) 50%),
        linear-gradient(135deg, rgba(148, 163, 184, 0.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.75rem !important;
}

select.admin-input-field[multiple] {
    background-image: none;
    padding-right: 1rem !important;
}

.admin-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.9) 50%),
        linear-gradient(135deg, rgba(148, 163, 184, 0.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.75rem !important;
}

.admin-select:focus {
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(96, 165, 250, 0.95) 50%),
        linear-gradient(135deg, rgba(96, 165, 250, 0.95) 50%, transparent 50%);
}

.admin-select[multiple] {
    background-image: none;
    padding-right: 1rem !important;
}

.admin-select option,
select.admin-input-field option {
    background-color: #0b1b36;
    color: #ffffff;
}

.admin-input-field:focus {
    border-color: #3b82f6 !important;
    background-color: rgba(15, 23, 42, 0.9) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

.admin-input-wrapper:focus-within .admin-input-icon {
    color: #3b82f6 !important;
}

.admin-role-list {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem !important;
    max-height: 12rem !important;
    overflow-y: auto !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-role-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-role-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Discord Style Checkbox */
.admin-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-checkbox:checked {
    background-color: #5865F2; /* Discord Blurple */
    border-color: #5865F2;
}

.admin-checkbox:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.admin-checkbox:hover:not(:checked) {
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-switch-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.admin-toggle-row:hover {
    background: rgba(0, 0, 0, 0.32);
    border-color: rgba(96, 165, 250, 0.25);
}

.admin-toggle-text {
    min-width: 0;
}

.admin-toggle-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
}

.admin-toggle-desc {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.admin-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    margin: 0;
}

.admin-switch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    transform: translate3d(0, -50%, 0);
    transition: transform 180ms ease, background-color 180ms ease;
}

.admin-switch.admin-switch-lg {
    width: 54px;
    height: 30px;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.22);
}

.admin-switch.admin-switch-lg::after {
    width: 24px;
    height: 24px;
    left: 3px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.admin-switch:checked {
    background: rgba(88, 101, 242, 0.85);
    border-color: rgba(88, 101, 242, 0.95);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.15);
}

.admin-switch:checked::after {
    transform: translate3d(20px, -50%, 0);
    background: #ffffff;
}

.admin-switch.admin-switch-lg:checked {
    background: rgba(59, 130, 246, 0.95);
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.admin-switch.admin-switch-lg:checked::after {
    transform: translate3d(24px, -50%, 0);
}

.admin-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .admin-switch,
    .admin-switch::after {
        transition: none !important;
    }
}

.menu_sortable .menu-sort-row {
    user-select: none;
    cursor: grab;
}

.menu_sortable .menu-sort-row.sortable-ghost {
    opacity: 0.6;
}

body.is-dragging .menu_sortable .menu-sort-row {
    cursor: grabbing;
}

.menu_sortable a,
.menu_sortable button,
.menu_sortable input,
.menu_sortable select,
.menu_sortable textarea,
.menu_sortable label {
    cursor: pointer;
}

#admin-sidebar .admin-side-link {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.58rem 0.68rem;
    border-radius: 11px;
    font-weight: 800;
    font-size: 0.81rem;
    color: rgba(148, 163, 184, 0.95);
    background: rgba(59, 130, 246, 0.075);
    border: 1px solid rgba(96, 165, 250, 0.14);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.25rem;
    min-width: 0;
    min-height: 2.65rem;
}

#admin-sidebar {
    max-height: none;
    overflow: visible !important;
    min-height: 0;
}

#admin-sidebar nav {
    overflow: visible;
    min-height: 0;
    padding-bottom: 1rem;
}

#admin-sidebar nav::-webkit-scrollbar {
    width: 0;
}

#admin-sidebar nav::-webkit-scrollbar-thumb {
    background: transparent;
}

#admin-sidebar .admin-side-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#admin-sidebar .admin-side-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(147, 197, 253, 0.28);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.11);
    transform: translateY(-1px);
}

#admin-sidebar .admin-side-link.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.30);
    border-color: rgba(96, 165, 250, 0.40);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.13);
}

#admin-sidebar .admin-side-link.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0;
    background: rgba(96, 165, 250, 0.9);
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.45);
}

#admin-sidebar .admin-side-link.is-danger {
    color: rgba(248, 113, 113, 0.95);
}

#admin-sidebar .admin-side-link.is-danger:hover {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.10);
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.10);
}

#admin-sidebar .admin-side-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: rgba(96, 165, 250, 0.95);
    flex-shrink: 0;
    font-size: 0.82rem;
}

#admin-sidebar .admin-side-link.is-danger .admin-side-icon {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.18);
    color: rgba(248, 113, 113, 0.95);
}

#admin-sidebar .admin-side-badge {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: rgba(248, 113, 113, 1);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 9999px;
}

#admin-sidebar .admin-side-group {
    margin: 0.82rem 0 0.42rem 0.45rem;
    color: rgba(191, 219, 254, 0.82);
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#admin-sidebar .admin-side-group:first-of-type {
    margin-top: 0.4rem;
}

#admin-sidebar .admin-side-badge {
    flex-shrink: 0;
}

.task-manager-shell {
    --tm-blue: #3b82f6;
    --tm-blue-soft: rgba(59, 130, 246, 0.14);
    --tm-surface: rgba(15, 23, 42, 0.72);
    --tm-surface-2: rgba(30, 41, 59, 0.42);
    color: #e5edf8;
}

.tm-hero,
.tm-create-panel,
.tm-board-panel,
.task-manager-shell .bg-card {
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.28);
}

.task-manager-shell .rounded-2xl,
.task-manager-shell .rounded-xl {
    border-radius: 8px !important;
}

.tm-hero {
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.20), rgba(15, 23, 42, 0.88) 44%, rgba(14, 116, 144, 0.10)),
        rgba(15, 23, 42, 0.86) !important;
    border-color: rgba(96, 165, 250, 0.26) !important;
}

.tm-kicker,
.tm-panel-label {
    color: rgba(147, 197, 253, 0.85);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tm-title {
    color: #fff;
    font-size: 2.15rem;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.tm-subtitle {
    color: rgba(203, 213, 225, 0.76);
    font-size: 0.92rem;
    margin-top: 0.6rem;
}

.tm-stat-card {
    background: rgba(15, 23, 42, 0.58) !important;
    border-color: rgba(96, 165, 250, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.tm-workspace {
    align-items: start;
}

.tm-create-panel,
.tm-board-panel {
    background: rgba(15, 23, 42, 0.70) !important;
    border-color: rgba(96, 165, 250, 0.15) !important;
}

.tm-panel-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.24);
}

.task-manager-shell input,
.task-manager-shell textarea,
.task-manager-shell select {
    border-radius: 8px !important;
    background: rgba(2, 6, 23, 0.42) !important;
    border-color: rgba(100, 116, 139, 0.30) !important;
}

.task-manager-shell input:focus,
.task-manager-shell textarea:focus,
.task-manager-shell select:focus {
    border-color: rgba(96, 165, 250, 0.74) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tm-primary-action,
.tm-search-button {
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.tm-board-toolbar {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.tm-board {
    align-items: stretch;
}

.tm-column {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.075), rgba(15, 23, 42, 0.16)),
        rgba(2, 6, 23, 0.32) !important;
    border-color: rgba(100, 116, 139, 0.22) !important;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
}

.tm-column:hover,
.tm-column.sortable-drag-over {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.08);
}

.tm-column-header {
    background: rgba(15, 23, 42, 0.68);
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(16px);
}

.task-column-list {
    flex: 1;
    max-height: 62vh;
    overflow-y: auto;
}

.tm-status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.tm-status-todo { background: #60a5fa; }
.tm-status-in_progress { background: #38bdf8; }
.tm-status-done { background: #22c55e; }

.task-card {
    cursor: default;
    transform-origin: center;
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.82) !important;
    border-color: rgba(100, 116, 139, 0.22) !important;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.20);
}

.task-card:hover {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(96, 165, 250, 0.42) !important;
}

.tm-card-topline {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    opacity: 0.72;
}

.task-card .tm-drag-handle {
    cursor: grab;
}

body.is-task-dragging .task-card .tm-drag-handle {
    cursor: grabbing;
}

.tm-card-ghost {
    opacity: 0.42;
    background: rgba(59, 130, 246, 0.14) !important;
    border: 1px dashed rgba(96, 165, 250, 0.75) !important;
}

.tm-card-chosen {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.20) !important;
}

.tm-card-drag {
    cursor: grabbing;
}

.tm-empty {
    background: rgba(59, 130, 246, 0.035);
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.task-card p.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    #admin-sidebar {
        max-height: calc(100dvh - 0px);
    }

    .task-manager-shell .tm-hero h2 {
        font-size: 1.75rem;
    }
}

.admin-save-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.admin-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.shadow-glow-red { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.shadow-glow-blue { box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }
.shadow-glow-green { box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }

.serif-font {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important;
}

.admin-danger-btn {
    width: 100%;
    padding: 0.875rem;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.admin-danger-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .admin-edit-panel {
        padding: 1rem;
        border-radius: 1rem;
        overflow: visible;
    }

    .admin-edit-section {
        padding: 1rem;
    }

    .admin-input-field {
        font-size: 1rem !important;
    }
}

.tinymce-content, .rich-text-content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.015em;
    color: #e2e8f0;
    font-weight: 400;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.tinymce-content p, .rich-text-content p {
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    color: #cbd5e1;
}

.tinymce-content strong, .rich-text-content strong,
.tinymce-content b, .rich-text-content b {
    color: #ffffff;
    font-weight: 700;
}

.forum-thread-card,
.forum-reply-card,
.forum-reply-box {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 41, 77, 0.97), rgba(10, 23, 45, 0.98)) !important;
    backdrop-filter: blur(18px);
}

.forum-thread-body,
.forum-reply-body {
    background: linear-gradient(180deg, rgba(19, 39, 75, 0.9), rgba(10, 23, 45, 0.98)) !important;
}

.forum-user-panel {
    gap: 0;
    background: linear-gradient(180deg, rgba(34, 67, 118, 0.76), rgba(10, 23, 45, 0.98)) !important;
}

.forum-user-panel--lead {
    padding-inline: 1rem;
}

.forum-user-panel--reply {
    padding-inline: 0.85rem;
}

.forum-user-avatar {
    position: relative;
    padding: 0.18rem !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.98) 0%, rgba(37, 99, 235, 0.98) 52%, rgba(30, 64, 175, 0.98) 100%) !important;
    border: 1px solid rgba(191, 219, 254, 0.24) !important;
    box-shadow:
        0 18px 28px rgba(2, 6, 23, 0.24),
        0 0 0 1px rgba(59, 130, 246, 0.14),
        0 0 22px rgba(59, 130, 246, 0.12);
}

.forum-user-avatar > div {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(8, 20, 44, 0.98), rgba(3, 10, 24, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.forum-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.forum-user-avatar--lead {
    width: 4.2rem;
    height: 4.2rem;
    padding: 0.22rem !important;
}

.forum-user-avatar--reply {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.16rem !important;
}

.forum-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    min-height: 2.65rem;
    padding: 0.78rem 1.18rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.forum-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 75%);
    transform: translateX(-135%);
    transition: transform 0.48s ease;
    pointer-events: none;
}

.forum-btn:hover {
    transform: translateY(-1px);
}

.forum-btn:hover::after {
    transform: translateX(135%);
}

.forum-btn i {
    font-size: 0.92em;
}

.forum-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(14, 165, 233, 0.96));
    border-color: rgba(147, 197, 253, 0.24);
    box-shadow:
        0 16px 26px rgba(37, 99, 235, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.forum-btn--primary:hover {
    box-shadow:
        0 18px 30px rgba(37, 99, 235, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.forum-btn--secondary {
    color: #8fd7ff;
    background: linear-gradient(180deg, rgba(19, 53, 97, 0.96), rgba(12, 34, 67, 0.98));
    border-color: rgba(96, 165, 250, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 26px rgba(2, 6, 23, 0.2);
}

.forum-btn--secondary:hover {
    color: #e0f2fe;
    border-color: rgba(125, 211, 252, 0.34);
}

.forum-btn--ghost {
    color: #eef6ff;
    background: linear-gradient(180deg, rgba(21, 41, 78, 0.92), rgba(10, 23, 45, 0.96));
    border-color: rgba(125, 211, 252, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(2, 6, 23, 0.16);
}

.forum-btn--ghost:hover {
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.24);
}

.forum-btn--danger {
    color: #fecaca;
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.34), rgba(69, 10, 10, 0.7));
    border-color: rgba(248, 113, 113, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 24px rgba(69, 10, 10, 0.16);
}

.forum-btn--danger:hover {
    color: #ffffff;
    border-color: rgba(252, 165, 165, 0.32);
}

.forum-btn--compact {
    min-height: 2.2rem;
    padding: 0.64rem 0.9rem;
    border-radius: 0.92rem;
    gap: 0.48rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.forum-btn--submit {
    min-width: 10.5rem;
}

.forum-btn--header {
    min-height: 2.85rem;
    padding-inline: 1.28rem;
}

.forum-btn--static {
    pointer-events: none;
    transform: none !important;
}

.forum-user-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.forum-user-name--lead {
    font-size: 1rem;
}

.forum-user-name--reply {
    font-size: 0.88rem;
}

.forum-user-badges {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
}

.forum-user-badges--lead {
    max-width: 10rem;
}

.forum-user-badges--reply {
    max-width: 8.65rem;
}

.forum-identity-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.42rem;
    width: 100%;
    max-width: 100%;
}

.forum-identity-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    width: 100%;
    min-width: 0;
    min-height: 1.85rem;
    padding: 0.38rem 0.62rem;
    border-radius: 0.92rem;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(34, 67, 118, 0.76), rgba(10, 23, 45, 0.98));
    color: #dbeafe;
    font-size: 0.53rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-identity-chip span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-identity-chip i {
    color: #60a5fa;
    font-size: 0.58rem;
    flex-shrink: 0;
}

.forum-identity-chip--role {
    border-color: rgba(96, 165, 250, 0.18);
    background: linear-gradient(180deg, rgba(34, 67, 118, 0.76), rgba(10, 23, 45, 0.98));
}

.forum-identity-chip--level {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.2);
    background: linear-gradient(180deg, rgba(34, 67, 118, 0.76), rgba(10, 23, 45, 0.98));
}

.forum-identity-chip--level i {
    color: #60a5fa;
}

.forum-identity-badges--compact {
    gap: 0.34rem;
}

.forum-identity-badges--compact .forum-identity-chip {
    min-height: 1.7rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    border-radius: 0.82rem;
}

.forum-identity-badges--compact .forum-identity-chip i {
    font-size: 0.54rem;
}

.forum-author-meta {
    display: grid;
    gap: 0.5rem;
}

.forum-author-meta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.68rem 0.76rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(20, 41, 77, 0.62)),
        rgba(8, 20, 44, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 28px rgba(2, 6, 23, 0.18);
    overflow: hidden;
}

.forum-author-meta-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -55% auto;
    width: 7rem;
    height: 7rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 68%);
    pointer-events: none;
}

.forum-author-meta-icon {
    position: relative;
    z-index: 1;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), rgba(30, 64, 175, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 18px rgba(30, 58, 138, 0.22);
}

.forum-author-meta-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.forum-author-meta-label {
    color: rgba(147, 197, 253, 0.72);
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.forum-author-meta-value {
    color: #f8fbff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.forum-author-meta--compact {
    gap: 0.55rem;
}

.forum-author-meta--compact .forum-author-meta-card {
    padding: 0.62rem 0.72rem;
    border-radius: 0.82rem;
}

.forum-author-meta--compact .forum-author-meta-icon {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.62rem;
    font-size: 0.72rem;
}

.forum-author-meta--compact .forum-author-meta-label {
    font-size: 0.44rem;
    letter-spacing: 0.18em;
}

.forum-author-meta--compact .forum-author-meta-value {
    font-size: 0.72rem;
}

.forum-post-content {
    max-width: 100%;
    color: #dbe7f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.72;
    letter-spacing: 0.01em;
}

.forum-post-surface {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: linear-gradient(180deg, rgba(20, 41, 77, 0.42), rgba(10, 23, 45, 0.62));
    border-radius: 1.35rem;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.forum-post-surface::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.18), transparent 55%);
    pointer-events: none;
}

.forum-post-surface--lead {
    padding: 1.05rem 1.1rem;
    min-height: clamp(11rem, 16vh, 14rem);
    flex: 1 1 auto;
}

.forum-post-surface--reply {
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(20, 41, 77, 0.34), rgba(10, 23, 45, 0.56));
    min-height: clamp(8rem, 12vh, 10.5rem);
    flex: 1 1 auto;
}

.forum-post-surface .forum-post-content {
    position: relative;
    z-index: 1;
}

.forum-post-content--lead {
    font-size: clamp(0.9rem, 0.88rem + 0.12vw, 0.98rem);
    line-height: 1.74;
}

.forum-post-content--reply {
    font-size: 0.86rem;
    line-height: 1.68;
}

.forum-post-content > *:first-child {
    margin-top: 0 !important;
}

.forum-post-content > *:last-child {
    margin-bottom: 0 !important;
}

.forum-post-content h1,
.forum-post-content h2,
.forum-post-content h3,
.forum-post-content h4,
.forum-post-content h5,
.forum-post-content h6 {
    letter-spacing: -0.02em;
    margin-top: 1.15em !important;
    margin-bottom: 0.5em !important;
}

.forum-post-content h1 { font-size: clamp(1.5rem, 2vw, 2rem) !important; }
.forum-post-content h2 { font-size: clamp(1.32rem, 1.6vw, 1.65rem) !important; }
.forum-post-content h3 { font-size: clamp(1.16rem, 1.3vw, 1.38rem) !important; }
.forum-post-content h4 { font-size: 1.08rem !important; }
.forum-post-content h5,
.forum-post-content h6 {
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.forum-post-content p {
    color: rgba(226, 232, 240, 0.94) !important;
    margin-bottom: 1.05em !important;
}

.forum-post-content ul,
.forum-post-content ol {
    margin-left: 1.35em !important;
    margin-bottom: 1.15em !important;
}

.forum-post-content li {
    margin-bottom: 0.45em !important;
}

.forum-post-content a {
    color: #60a5fa !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.35);
}

.forum-post-content a:hover {
    color: #93c5fd !important;
    border-bottom-color: rgba(147, 197, 253, 0.8);
}

.forum-post-content blockquote {
    margin: 1.15em 0 !important;
    padding: 1rem 1.2rem !important;
    border-left: 3px solid rgba(59, 130, 246, 0.8);
    background: rgba(15, 23, 42, 0.65);
    color: rgba(191, 219, 254, 0.95) !important;
    border-radius: 0 1rem 1rem 0;
}

.forum-post-content pre {
    background: rgba(2, 6, 23, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    padding: 1rem 1.1rem !important;
}

.forum-post-content code {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #dbeafe !important;
}

.forum-post-content img {
    margin: 1.15em 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.24);
}

.forum-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.15em 0;
    overflow: hidden;
    border-radius: 1rem;
}

.forum-post-content table td,
.forum-post-content table th {
    border: 1px solid rgba(148, 163, 184, 0.14);
    padding: 0.75rem 0.9rem;
}

.forum-post-content table th {
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-weight: 800;
}

.tox.tox-tinymce {
    border: 1px solid rgba(96, 165, 250, 0.22) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(17, 52, 96, 0.98), rgba(15, 43, 82, 0.99)) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 14px rgba(59, 130, 246, 0.12) !important;
}

.tox .tox-editor-container,
.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-toolbar__overflow,
.tox .tox-statusbar {
    background: rgba(16, 45, 84, 0.96) !important;
}

.tox .tox-editor-header {
    background: rgba(16, 45, 84, 0.98) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.18) !important;
}

.tox .tox-toolbar__primary {
    border-bottom: 1px solid rgba(96, 165, 250, 0.14) !important;
}

.tox .tox-edit-area {
    border-top: 1px solid rgba(96, 165, 250, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
}

.tox .tox-sidebar-wrap {
    border-top: 1px solid rgba(96, 165, 250, 0.12) !important;
}

.tox .tox-toolbar__group:not(:last-of-type) {
    border-right: 1px solid rgba(96, 165, 250, 0.14) !important;
}

.tox .tox-edit-area__iframe {
    background: rgba(17, 52, 96, 0.98) !important;
}

.tox .tox-edit-area::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(17, 52, 96, 0.04));
    pointer-events: none;
}

.tox .tox-statusbar {
    border-top: 1px solid rgba(96, 165, 250, 0.14) !important;
}

#admin_news_form .tox .tox-editor-container,
#admin_news_form .tox .tox-toolbar,
#admin_news_form .tox .tox-toolbar__primary,
#admin_news_form .tox .tox-toolbar__overflow,
#admin_news_form .tox .tox-statusbar,
#admin_news_form .tox .tox-editor-header {
    background: rgba(11, 27, 54, 0.92) !important;
}

#admin_news_form .tox .tox-edit-area__iframe {
    background: rgba(11, 27, 54, 0.78) !important;
}

#admin_news_form .tox.tox-tinymce {
    border-color: rgba(96, 165, 250, 0.30) !important;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18), 0 0 22px rgba(59, 130, 246, 0.18) !important;
}

.tox .tox-statusbar__path,
.tox .tox-statusbar__wordcount,
.tox .tox-statusbar__text-container {
    display: none !important;
}

.tox .tox-statusbar__resize-handle {
    opacity: 1 !important;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
}

.tox .tox-statusbar__resize-handle svg {
    fill: rgba(147, 197, 253, 0.95) !important;
}

.tox .tox-statusbar__resize-handle:hover svg {
    fill: rgba(255, 255, 255, 1) !important;
}

.tox .tox-tbtn {
    border-radius: 10px !important;
    color: #bfdbfe !important;
}

.tox .tox-tbtn:hover {
    background: rgba(59, 130, 246, 0.14) !important;
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
    background: rgba(37, 99, 235, 0.28) !important;
    color: #ffffff !important;
}

.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active),
.tox .tox-mbtn--active {
    background: rgba(59, 130, 246, 0.14) !important;
}

.tox .tox-toolbar-overlord,
.tox .tox-toolbar__group,
.tox .tox-toolbar__primary {
    padding-block: 0.2rem !important;
}

.forum-reply-box .tox .tox-edit-area,
.forum-reply-box .tox .tox-sidebar-wrap {
    background: linear-gradient(180deg, rgba(20, 57, 104, 0.98), rgba(15, 43, 82, 0.98)) !important;
}

.forum-reply-box .tox .tox-toolbar__group {
    margin: 0 0.1rem !important;
}

.tox .tox-menu,
.tox .tox-collection,
.tox .tox-dialog,
.tox .tox-dialog__header,
.tox .tox-dialog__footer {
    background: rgba(11, 27, 54, 0.98) !important;
    border-color: rgba(96, 165, 250, 0.18) !important;
}

.tox .tox-collection__item--active,
.tox .tox-collection__item:hover {
    background: rgba(59, 130, 246, 0.14) !important;
}

.tox .tox-textfield,
.tox .tox-textarea {
    background: rgba(2, 6, 23, 0.7) !important;
    border: 1px solid rgba(96, 165, 250, 0.18) !important;
    color: rgba(226, 232, 240, 0.95) !important;
    border-radius: 12px !important;
}

.tox .tox-label,
.tox .tox-toolbar-label,
.tox .tox-dialog__title {
    color: rgba(226, 232, 240, 0.92) !important;
}

.tox .tox-icon svg,
.tox .tox-tbtn svg {
    fill: rgba(226, 232, 240, 0.92) !important;
}

.tox .tox-tbtn--enabled svg,
.tox .tox-tbtn--enabled:hover svg {
    fill: #ffffff !important;
}

.wl-apply .wl-form-shell {
    position: relative;
}

.wl-apply .wl-form-header {
    position: relative;
}

.wl-apply .wl-form-header-inner {
    border-radius: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: linear-gradient(180deg, rgba(11, 27, 54, 0.70), rgba(11, 27, 54, 0.50));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wl-apply .wl-form-header-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: radial-gradient(520px 220px at 20% 0%, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(520px 220px at 90% 100%, rgba(37, 99, 235, 0.16), transparent 55%);
    pointer-events: none;
}

.wl-apply .wl-form-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: rgba(147, 197, 253, 1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wl-apply .wl-form-icon i {
    font-size: 1.25rem;
}

.wl-apply .wl-form-title {
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .wl-apply .wl-form-title {
        font-size: 2.25rem;
    }
}

.wl-apply .wl-form-subtitle {
    margin-top: 0.35rem;
    color: rgba(203, 213, 225, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.wl-apply .wl-form-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 15% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(700px 360px at 95% 20%, rgba(37, 99, 235, 0.12), transparent 55%);
    pointer-events: none;
}

.wl-apply .wl-question-card {
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06) 45%, rgba(15, 23, 42, 0.0));
    padding: 1px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wl-apply .wl-question-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0.10) 45%, rgba(15, 23, 42, 0.0));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.wl-apply .wl-question-card.is-active {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 26px rgba(59, 130, 246, 0.10);
}

.wl-apply .wl-question-inner {
    border-radius: calc(1.25rem - 1px);
    background: rgba(11, 27, 54, 0.62);
    border: 1px solid rgba(96, 165, 250, 0.16);
    padding: 1.5rem;
}

.wl-apply .wl-answer-wrap {
    width: 100%;
    max-width: 100%;
}

.wl-apply .wl-q-index {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.9rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: rgba(147, 197, 253, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}

.wl-apply .wl-short-input,
.wl-apply .wl-long-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 1rem;
    color: rgba(226, 232, 240, 0.96);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.65;
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wl-apply select.wl-short-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(147, 197, 253, 0.9) 50%),
        linear-gradient(135deg, rgba(147, 197, 253, 0.9) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% + 1px),
        calc(100% - 16px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.wl-apply select.wl-short-input option {
    background: #0b1b36;
    color: rgba(226, 232, 240, 0.96);
}

.wl-apply .wl-pnr-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .wl-apply .wl-pnr-grid {
        grid-template-columns: 1fr;
    }
}

.wl-apply .wl-pnr-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.wl-apply .wl-short-input::placeholder,
.wl-apply .wl-long-input::placeholder {
    color: rgba(226, 232, 240, 0.86);
}

.wl-apply .wl-short-input::-ms-input-placeholder,
.wl-apply .wl-long-input::-ms-input-placeholder {
    color: rgba(226, 232, 240, 0.86);
}

.wl-apply .wl-short-input:focus,
.wl-apply .wl-long-input:focus {
    border-color: rgba(147, 197, 253, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.20);
    background: rgba(2, 6, 23, 0.7);
}

.wl-apply .wl-long-input {
    min-height: 340px;
    resize: vertical;
    overflow-y: auto;
    white-space: pre-wrap;
}

@media (min-width: 1024px) {
    .wl-apply .wl-long-input {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .wl-apply .wl-question-inner {
        padding: 1rem;
    }

    .wl-apply .wl-long-input {
        min-height: 300px;
    }
}

.wl-apply .wl-submit-shell {
    position: static;
}

.wl-apply .wl-submit-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(11, 27, 54, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

@media (min-width: 768px) {
    .wl-apply .wl-submit-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.wl-apply .wl-submit-btn {
    padding: 1rem 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 55%, rgba(29, 78, 216, 1) 100%);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.35), 0 18px 45px rgba(0,0,0,0.25);
    font-weight: 900;
    color: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wl-apply .wl-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(37, 99, 235, 0.44), 0 22px 55px rgba(0,0,0,0.30);
    filter: brightness(1.02);
}

.wl-apply .wl-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.wl-apply .wl-sidebar {
    background: linear-gradient(180deg, rgba(11, 27, 54, 0.70), rgba(11, 27, 54, 0.55));
}

.wl-wordcount {
    margin-top: 0.6rem;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    user-select: none;
}

.wl-wordcount.is-over {
    color: rgba(248, 113, 113, 1);
}

.news-card-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.025em; /* Tajtare bokstavsmellanrum för stora moderna rubriker */
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Glassmorphism utility för en modern, laggfri design */
.glass-nav {
    background: rgba(11, 27, 54, 0.7); /* Matchar dark (Ljusare marinblå) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15); /* JCP Primary border */
}

.glass-nav.scrolled {
    background: rgba(11, 27, 54, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(17, 37, 71, 0.6); /* Matchar card (Ljusare blå kort) */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B1B36; /* Matchar dark */
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* Optimering för att undvika lagg på enheter */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Förhindra text-markering på UI element */
button, nav, .glass-card h4 {
    user-select: none;
}

/* ==========================================================================
   MODERN CHAT SYSTEM
   ========================================================================== */

/* Layout & Containers */
.chat-wrapper {
    height: 750px;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(11, 27, 54, 0.6); /* Temats mörkblåa grundfärg */
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.chat-wrapper--solo {
    height: 560px;
}

.chat-wrapper.chat-ig {
    border-radius: 1.75rem;
    background: rgba(7, 18, 38, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 35px 70px -25px rgba(0, 0, 0, 0.65), 0 0 55px rgba(14, 165, 233, 0.10);
}

.chat-wrapper.chat-ig .chat-header {
    background: rgba(7, 18, 38, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding: 0.9rem 1.1rem;
}

.chat-wrapper.chat-ig .chat-messages {
    padding: 1.1rem 1.1rem;
    gap: 0.9rem;
}

.chat-wrapper.chat-ig .msg-bubble {
    border-radius: 1.6rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.98rem;
}

.chat-wrapper.chat-ig .msg-row.me .msg-bubble {
    border-bottom-right-radius: 0.9rem;
}

.chat-wrapper.chat-ig .msg-row.other .msg-bubble {
    border-bottom-left-radius: 0.9rem;
}

.chat-wrapper.chat-ig .chat-input-area {
    padding: 1rem 1.1rem;
    background: rgba(7, 18, 38, 0.95);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.chat-wrapper.chat-ig .chat-form {
    border-radius: 999px;
    padding: 0.45rem 0.6rem;
}

.chat-wrapper.chat-ig .chat-submit-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
}

.chat-wrapper.chat-ig .chat-submit-btn i {
    margin: 0;
}

.chat-wrapper.chat-ig .msg-time {
    font-size: 0.72rem;
    font-weight: 900;
    opacity: 0.95;
}

.dm-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.62);
    z-index: 80;
}

.dm-overlay.active {
    display: flex;
}

.dm-overlay--dock {
    inset: auto;
    right: 18px;
    bottom: 18px;
    padding: 0;
    background: transparent;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.staff-chat-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 79;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.26);
    background: rgba(11, 27, 54, 0.92);
    color: rgba(226, 232, 240, 0.95);
    font-weight: 900;
    box-shadow: 0 24px 55px rgba(0,0,0,0.55), 0 0 45px rgba(14, 165, 233, 0.18);
    backdrop-filter: blur(10px);
}

.staff-chat-fab:hover {
    border-color: rgba(14, 165, 233, 0.40);
    background: rgba(11, 27, 54, 0.98);
}

.staff-chat-fab-text {
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.staff-chat-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.28);
    background: rgba(14, 165, 233, 0.22);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.staff-chat-settings {
    position: absolute;
    top: 56px;
    right: 12px;
    width: 240px;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.20);
    background: rgba(11, 27, 54, 0.98);
    box-shadow: 0 22px 45px rgba(0,0,0,0.55);
    padding: 12px;
    z-index: 6;
}

.staff-chat-toggle-row {
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    margin-bottom: 10px;
}

.staff-chat-toggle-row:last-of-type {
    margin-bottom: 0;
}

.staff-chat-settings .admin-toggle-title {
    font-size: 0.9rem;
}

.staff-chat-settings .admin-toggle-desc {
    font-size: 0.72rem;
}

.staff-chat-settings-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.staff-chat-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(226, 232, 240, 0.92);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 8px 8px;
    border-radius: 12px;
    cursor: pointer;
}

.staff-chat-setting:hover {
    background: rgba(59, 130, 246, 0.10);
}

.staff-chat-setting input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgb(14, 165, 233);
}

.staff-chat-settings-note {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.35;
}

.dm-topbar {
    position: relative;
}

.dm-overlay--dock.active {
    display: flex;
}

.dm-overlay--dock .dm-panel {
    pointer-events: auto;
    width: min(420px, calc(100vw - 36px));
    height: min(640px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    border-radius: 20px;
}

.dm-overlay--dock .dm-panel--wide {
    width: min(760px, calc(100vw - 36px));
    height: min(760px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
}

#socialChatOverlay.dm-overlay--dock .dm-panel {
    width: min(520px, calc(100vw - 36px));
    height: min(720px, calc(100vh - 160px));
    max-height: calc(100vh - 160px);
}

#socialChatOverlay.dm-overlay--dock .dm-panel--wide {
    width: min(960px, calc(100vw - 36px));
    height: min(820px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
}

#socialChatOverlay.dm-overlay--dock .chat-input-area {
    padding: 12px;
}

#socialChatOverlay.dm-overlay--dock .chat-form {
    padding: 0.4rem 0.55rem;
    gap: 0.25rem;
}

#socialChatOverlay.dm-overlay--dock .chat-action-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    box-sizing: border-box;
}

#socialChatOverlay.dm-overlay--dock .chat-textarea {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    min-width: 0;
}

#socialChatOverlay.dm-overlay--dock .chat-submit-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    min-width: 0;
    box-sizing: border-box;
}

.dm-overlay--dock#socialChatOverlay .chat-wrapper {
    flex-direction: row !important;
}

.dm-overlay--dock#socialChatOverlay .chat-sidebar {
    width: 32% !important;
    min-width: 180px;
}

.dm-overlay--dock#socialChatOverlay .chat-main {
    width: 68% !important;
}

.dm-overlay--dock#socialChatOverlay .chat-messages {
    padding: 1rem 1rem;
}

.dm-overlay--dock#socialChatOverlay .msg-content {
    max-width: 92%;
}

.dm-overlay--dock#socialChatOverlay .msg-bubble {
    max-width: 100%;
}

.dm-overlay--dock#socialChatOverlay .chat-list {
    padding: 0.6rem;
}

.dm-overlay--dock#socialChatOverlay .chat-list-item {
    padding: 0.6rem;
}

.dm-overlay--dock#socialChatOverlay .chat-form {
    width: 100%;
    align-items: center;
}

.dm-overlay--dock#socialChatOverlay .chat-textarea {
    min-width: 0;
    min-height: 46px;
    max-height: 140px;
}

.dm-overlay--dock .chat-input-area {
    padding: 12px;
}

.dm-overlay--dock .chat-wrapper.chat-ig .chat-input-area {
    background: rgba(11, 27, 54, 0.78) !important;
    border-top: none;
}

.dm-overlay--dock .chat-submit-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    padding: 0;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

.dm-overlay--dock .chat-wrapper.chat-ig {
    background: rgba(11, 27, 54, 0.78) !important;
    border: 1px solid rgba(14, 165, 233, 0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.dm-overlay--dock .dm-panel {
    background: rgba(11, 27, 54, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.24);
    box-shadow: 0 35px 85px rgba(0,0,0,0.70), 0 0 70px rgba(14, 165, 233, 0.14);
}

.dm-overlay--dock .dm-topbar {
    background: rgba(11, 27, 54, 0.96);
    border-bottom: 1px solid rgba(14, 165, 233, 0.18);
}

.dm-overlay--dock .dm-back,
.dm-overlay--dock .dm-iconbtn,
.dm-overlay--dock .dm-close {
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(59, 130, 246, 0.10);
}

.dm-overlay--dock .dm-close:hover,
.dm-overlay--dock .dm-iconbtn:hover,
.dm-overlay--dock .dm-back:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(147, 197, 253, 0.22);
}

.dm-overlay--dock .chat-form {
    background: rgba(17, 37, 71, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.26);
    border-radius: 999px;
    padding: 0.55rem 0.65rem;
    gap: 0.35rem;
    width: 100%;
}

.dm-overlay--dock .chat-form:focus-within {
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.18);
    background: rgba(17, 37, 71, 0.98);
}

.dm-overlay--dock .staff-chat-form .chat-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

.dm-overlay--dock .staff-chat-form .chat-textarea {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
}

.dm-overlay--dock .msg-row.me .msg-bubble {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: #ffffff;
}

.dm-overlay--dock .msg-row.other .msg-bubble {
    background: rgba(17, 37, 71, 0.90);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: rgba(226, 232, 240, 0.92);
}

.dm-overlay--dock .chat-wrapper--solo {
    flex-direction: column !important;
}

.dm-overlay--dock .chat-wrapper--solo .chat-main {
    width: 100% !important;
}

.dm-overlay--dock .msg-row {
    align-items: flex-end;
    gap: 0;
}

.dm-overlay--dock .msg-content {
    max-width: 100%;
    position: relative;
}

.dm-overlay--dock .msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: rgba(17, 37, 71, 0.92);
    color: rgba(147, 197, 253, 0.95);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.dm-overlay--dock .msg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
}

.dm-overlay--dock .msg-head.me {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.dm-overlay--dock .msg-head.other {
    align-self: flex-start;
}

.dm-overlay--dock .msg-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(59, 130, 246, 0.10);
    color: rgba(226, 232, 240, 0.92);
    display: grid;
    place-items: center;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dm-overlay--dock .msg-action-btn:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(147, 197, 253, 0.22);
    transform: translateY(-1px);
}

.dm-overlay--dock .msg-del-btn {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.10);
}

.dm-overlay--dock .msg-del-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
}

.dm-overlay--dock .msg-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 6px 0;
}

.dm-overlay--dock .msg-row.me .msg-reactions {
    justify-content: flex-end;
}

.dm-overlay--dock .msg-underbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dm-overlay--dock .msg-underbar.me {
    justify-content: flex-end;
}

.dm-overlay--dock .msg-rx-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(17, 37, 71, 0.90);
    color: rgba(226, 232, 240, 0.92);
    font-weight: 900;
    font-size: 0.78rem;
    line-height: 1;
}

.dm-overlay--dock .msg-rx-btn.is-me {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.34);
}

.dm-overlay--dock .msg-react-picker {
    position: absolute;
    bottom: 56px;
    left: 12px;
    display: none;
    gap: 6px;
    padding: 10px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: rgba(11, 27, 54, 0.98);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
    z-index: 5;
}

.dm-overlay--dock .msg-row.me .msg-react-picker {
    left: auto;
    right: 12px;
}

.dm-overlay--dock .msg-react-picker.active {
    display: inline-flex;
}

.dm-overlay--dock .msg-react-choice {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.16);
    background: rgba(17, 37, 71, 0.92);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.dm-overlay--dock .msg-react-choice:hover {
    transform: translateY(-1px);
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(147, 197, 253, 0.22);
}

.dm-overlay--dock .msg-name {
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(226, 232, 240, 0.92);
}

.dm-overlay--dock .msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dm-panel {
    width: min(460px, 100%);
    max-height: calc(100vh - 32px);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(8, 12, 20, 0.96);
    box-shadow: 0 35px 85px rgba(0,0,0,0.75), 0 0 60px rgba(14, 165, 233, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dm-panel--wide {
    width: min(980px, 100%);
}

.dm-panel--tall {
    height: min(920px, 92vh);
    max-height: 92vh;
}

.dm-scroll-lock {
    overflow: hidden !important;
}

.dm-panel .chat-wrapper--solo {
    height: 100%;
}

.dm-topbar {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 12, 20, 0.98);
}

.dm-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dm-back {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.30);
    color: rgba(226, 232, 240, 0.92);
    display: grid;
    place-items: center;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dm-back:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(147, 197, 253, 0.20);
    transform: translateY(-1px);
}

.dm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(59, 130, 246, 0.12);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.dm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dm-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dm-title-main {
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-title-sub {
    font-size: 12px;
    font-weight: 800;
    color: rgba(148, 163, 184, 0.95);
}

.dm-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.30);
    color: rgba(226, 232, 240, 0.92);
    display: grid;
    place-items: center;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.dm-iconbtn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(147, 197, 253, 0.20);
    transform: translateY(-1px);
}

.dm-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.30);
    color: rgba(226, 232, 240, 0.92);
    display: grid;
    place-items: center;
    transition: background 160ms ease, border-color 160ms ease;
}

.dm-close:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(147, 197, 253, 0.20);
}

.dm-panel .chat-wrapper {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.dm-panel .chat-sidebar,
.dm-panel .chat-main {
    height: 100%;
}

.dm-panel .chat-messages {
    height: 100%;
}

.dm-panel .chat-wrapper.chat-ig .chat-input-area {
    background: rgba(8, 12, 20, 0.98);
}

@media (min-width: 768px) {
    .dm-overlay { align-items: center; }
    .dm-panel { max-height: 86vh; }
}

@media (max-width: 640px) {
    .dm-overlay--dock {
        right: 10px;
        bottom: 10px;
    }
    .staff-chat-fab {
        right: 10px;
        bottom: 10px;
        padding: 12px 14px;
    }
    .staff-chat-fab-text { display: none; }
    .dm-overlay--dock .dm-panel {
        width: calc(100vw - 20px);
        height: 78vh;
        max-height: 78vh;
        border-radius: 22px;
    }
}

@media (min-width: 768px) {
    .chat-wrapper { flex-direction: row; }
}

/* Sidebar (Chat List) */
.chat-sidebar {
    width: 100%;
    background: rgba(11, 27, 54, 0.85); /* Temats mörkblåa */
    border-right: 1px solid rgba(14, 165, 233, 0.15);
    display: flex;
    flex-direction: column;
}

.chat-tabs-bar {
    display: flex;
    gap: 8px;
    padding: 10px 10px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    background: rgba(11, 27, 54, 0.55);
}

.chat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(17, 37, 71, 0.75);
    color: rgba(226, 232, 240, 0.92);
    font-weight: 900;
    font-size: 0.85rem;
    white-space: nowrap;
}

.chat-tab.active {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.32);
}

.chat-tab-close {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
    font-weight: 900;
    line-height: 1;
}

.chat-tab-close:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.28);
}

#socialChatOverlay .chat-tabs-bar {
    background: transparent;
    border-bottom: none;
    padding: 8px 12px 0 12px;
}

#socialChatOverlay .chat-tab {
    padding: 7px 10px;
    font-size: 0.82rem;
}

#socialChatOverlay .chat-tab-close {
    width: 16px;
    height: 16px;
}

#socialChatOverlay .msg-reactions {
    margin-top: 8px;
    margin-bottom: 0;
    gap: 6px;
}

#socialChatOverlay .msg-row.me .msg-reactions {
    justify-content: flex-end;
}

#socialChatOverlay .reaction-badge {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: none;
}

#socialChatOverlay .reaction-badge:hover {
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .chat-sidebar { width: 33.333333%; }
}

.chat-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    font-weight: bold;
    color: white;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.chat-list-item:hover {
    background: rgba(17, 37, 71, 0.8);
    transform: translateX(2px);
}

.chat-list-item.active {
    background: rgba(14, 165, 233, 0.15); /* Temafärg istället för grå/mörkblå */
    border-color: rgba(14, 165, 233, 0.3);
}

.chat-list-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background: #0ea5e9; /* Temafärg */
    border-radius: 0 4px 4px 0;
}

/* Main Chat Area */
.chat-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    position: relative;
}

@media (min-width: 768px) {
    .chat-main { width: 66.666667%; }
}

.chat-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    background: rgba(11, 27, 54, 0.95); /* Temats mörkblåa */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Message Bubbles */
.msg-row {
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.3s ease-out forwards;
}

.msg-row.me { justify-content: flex-end; }
.msg-row.other { justify-content: flex-start; }

.msg-content {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.msg-row.me .msg-content { align-items: flex-end; }
.msg-row.other .msg-content { align-items: flex-start; }

.msg-bubble {
    padding: 0.875rem 1.25rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
}

/* Tails for bubbles */
.msg-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
}

.msg-row.me .msg-bubble {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); /* Temats ljusblå */
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.msg-row.me .msg-bubble::before {
    right: -8px;
    border-bottom-left-radius: 16px;
    box-shadow: -8px 0 0 0 #0284c7;
    clip-path: inset(10px 0 20px 0); /* visually hide it if you don't want the tail, or adjust to show it */
    display: none; /* Turn on if you want iMessage style tails */
}

.msg-row.other .msg-bubble {
    background: rgba(17, 37, 71, 0.95); /* Temats blåa */
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: white; 
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.05); 
}

.msg-time {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-weight: bold;
    opacity: 1;
}

.msg-row.me .msg-time { color: rgba(147, 197, 253, 0.8); padding-right: 0.25rem; }
.msg-row.other .msg-time { color: rgba(148, 163, 184, 0.9); padding-left: 0.25rem; }

/* Reactions & GIFs */
.msg-reactions {
    display: flex;
    gap: 0.25rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    z-index: 5;
    position: relative;
}

.reaction-badge {
    background: rgba(11, 27, 54, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.reaction-badge:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: scale(1.15) translateY(-2px);
    border-color: rgba(14, 165, 233, 0.8);
}

.msg-gif {
    max-width: 250px;
    border-radius: 1rem;
    margin-top: 0.25rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.msg-gif:hover {
    border-color: rgba(14, 165, 233, 0.5);
}

/* Chat Input Area */
.chat-input-area {
    padding: 1.25rem;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    background: rgba(11, 27, 54, 0.95); /* Temats mörkblåa */
    position: relative;
    z-index: 10;
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: rgba(17, 37, 71, 0.8); /* Ljusare blå för input-fältet */
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 1.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-form:focus-within {
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    background: rgba(17, 37, 71, 0.95); /* Ljusare blå */
}

.chat-textarea {
    flex-grow: 1;
    background: transparent;
    color: white;
    padding: 0.5rem 0.75rem;
    outline: none;
    font-size: 0.95rem;
    resize: none;
    max-height: 120px;
    border: none;
}

.chat-textarea::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

.chat-action-btn {
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.chat-action-btn:hover { 
    color: #0ea5e9; 
    background: rgba(14, 165, 233, 0.1);
}

.chat-submit-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); /* Ljusblå temafärg */
    color: white;
    border: none;
    padding: 0 1.25rem;
    border-radius: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.chat-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.5);
}

/* Typing Indicator Animation */
.typing-indicator {
    display: none; /* Dold som standard */
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: rgba(17, 37, 71, 0.8);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    width: fit-content;
    margin-top: 0.5rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
}

.typing-indicator-text {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
    display: none;
}

.typing-container {
    display: none;
    flex-direction: column;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Emoji/GIF Pickers */
.chat-picker-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 1.25rem;
    background: rgba(11, 27, 54, 0.98);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    display: none;
    width: 320px;
    z-index: 50;
}

.chat-picker-popup.active { display: block; animation: fadeInUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3); 
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.6); 
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* --------------------------------------------------------------------------
   Documentation platform - blue GitBook/Notion inspired UI
-------------------------------------------------------------------------- */

.docs-shell,
.docs-admin-shell { position: relative; z-index: 2; }

.docs-dashboard-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem !important;
    border-color: rgba(96, 165, 250, 0.24) !important;
    background:
        linear-gradient(135deg, rgba(17, 37, 71, 0.96), rgba(11, 27, 54, 0.92)),
        radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.22), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(14, 165, 233, 0.14), transparent 28%) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.docs-dashboard-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #38bdf8, #2563eb);
    opacity: 0.9;
}
.docs-dashboard-hero,
.docs-reader-hero {
    position: relative;
    padding: clamp(1.15rem, 2.5vw, 1.6rem);
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 1.25rem;
    background: rgba(11, 27, 54, 0.58);
}
.docs-reader-hero p,
.docs-article-head p {
    display: none !important;
}
.docs-dashboard-kicker,
.docs-reader-breadcrumb {
    color: #93c5fd !important;
    letter-spacing: 0.13em !important;
}
.docs-dashboard-hero h3,
.docs-reader-title {
    font-size: clamp(2rem, 4vw, 3.7rem) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}
.docs-dashboard-subtitle,
.docs-reader-intro {
    font-size: 1.02rem !important;
    color: rgba(219, 234, 254, 0.78) !important;
}
.docs-dashboard-btn {
    border-radius: 0.95rem !important;
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.26) !important;
}
.docs-dashboard-btn.secondary {
    background: rgba(11, 27, 54, 0.82) !important;
    border-color: rgba(147, 197, 253, 0.24) !important;
    box-shadow: none !important;
}
.docs-dashboard-categories a {
    border-radius: 999px !important;
    background: rgba(11, 27, 54, 0.74) !important;
    border-color: rgba(147, 197, 253, 0.20) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.docs-dashboard-categories a:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.24) !important;
}
.docs-dashboard-grid {
    align-items: stretch;
}
.docs-dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem !important;
    background:
        linear-gradient(180deg, rgba(17, 37, 71, 0.74), rgba(11, 27, 54, 0.82)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.docs-dashboard-card::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.82), transparent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.docs-dashboard-card:hover::after {
    transform: scaleX(1);
}
.docs-dashboard-card-icon {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 1rem !important;
    background: rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
}
.docs-dashboard-card-category {
    width: fit-content;
    margin-bottom: 0.7rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.18);
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.08);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.docs-dashboard-card h4 {
    font-size: 1.14rem !important;
    text-wrap: balance;
}
.docs-dashboard-card p {
    color: rgba(219, 234, 254, 0.62) !important;
}
.docs-dashboard-card-footer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.docs-reader-breadcrumb a,
.docs-reader-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.docs-reader-stat {
    min-width: 9rem;
    background: rgba(17, 37, 71, 0.72) !important;
    border-color: rgba(147, 197, 253, 0.20) !important;
}
.docs-reader-image {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}
.docs-reader-body {
    max-width: 920px;
    margin-inline: auto;
    background: rgba(7, 18, 38, 0.62) !important;
    border-color: rgba(147, 197, 253, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.docs-reader-actions {
    justify-content: center;
}
.docs-dashboard-empty {
    background: rgba(11, 27, 54, 0.52) !important;
    border-color: rgba(147, 197, 253, 0.24) !important;
}

/* Docs dashboard redesign layer */
.docs-dashboard-shell {
    padding: clamp(1.25rem, 2.8vw, 2.8rem) !important;
    max-width: 1180px;
    margin-inline: auto;
}
.docs-dashboard-hero-pro {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    align-items: stretch !important;
    padding: clamp(1.35rem, 2.6vw, 2.25rem) !important;
    min-height: 0;
    background:
        linear-gradient(135deg, rgba(7, 20, 45, 0.92), rgba(17, 57, 116, 0.72)),
        radial-gradient(circle at 8% 0%, rgba(96, 165, 250, 0.36), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(96, 165, 250, 0.10), transparent 42%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 76px rgba(0, 0, 0, 0.28);
}
.docs-dashboard-hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}
.docs-dashboard-hero-copy h3 {
    max-width: 760px;
    font-size: clamp(2.35rem, 4vw, 3.85rem) !important;
    line-height: 1.04 !important;
    margin: 0.45rem 0 1rem !important;
    color: #fff;
    letter-spacing: 0 !important;
}
.docs-dashboard-hero-copy p {
    color: rgba(219, 234, 254, 0.84);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    max-width: 680px;
    line-height: 1.72;
}
.docs-dashboard-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 38rem);
    margin-top: 1.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(147, 197, 253, 0.30);
    border-radius: 1.15rem;
    color: #93c5fd;
    background: rgba(6, 17, 38, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 46px rgba(0, 0, 0, 0.20);
}
.docs-dashboard-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}
.docs-dashboard-search input::placeholder {
    color: rgba(191, 219, 254, 0.48);
}
.docs-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}
.docs-dashboard-metrics > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(147, 197, 253, 0.24);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(13, 38, 78, 0.82), rgba(8, 23, 49, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
.docs-dashboard-metrics strong {
    color: #fff;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    line-height: 1;
    font-weight: 950;
    order: 2;
}
.docs-dashboard-metrics span {
    margin-top: 0;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    order: 1;
}
.docs-dashboard-categories {
    padding: 0.6rem;
    border: 1px solid rgba(147, 197, 253, 0.16);
    border-radius: 1.3rem;
    background: rgba(6, 17, 38, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.docs-dashboard-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(11, 27, 54, 0.72);
    font-size: 0.9rem;
    font-weight: 900;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.docs-dashboard-filter:hover,
.docs-dashboard-filter.is-active {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.55);
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(14, 165, 233, 0.24));
}
.docs-dashboard-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.15rem;
}
.docs-dashboard-section-head span {
    display: block;
    margin-bottom: 0.35rem;
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.docs-dashboard-section-head h4 {
    color: #fff;
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    line-height: 1.05;
    font-weight: 950;
}
.docs-dashboard-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(147, 197, 253, 0.20);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(8, 23, 49, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.docs-dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.45rem !important;
    align-items: stretch;
}
.docs-dashboard-card {
    isolation: isolate;
    min-height: 20.5rem !important;
    padding: 1.65rem !important;
    border-radius: 1.45rem !important;
    border-color: rgba(147, 197, 253, 0.22) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.20), transparent 34%),
        linear-gradient(145deg, rgba(18, 50, 98, 0.82), rgba(7, 20, 43, 0.94)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 45px rgba(0, 0, 0, 0.18);
}
.docs-dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background:
        radial-gradient(circle at 72% 0%, rgba(14, 165, 233, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 45%);
    transition: opacity 0.2s ease;
}
.docs-dashboard-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(96, 165, 250, 0.56) !important;
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(96, 165, 250, 0.28);
}
.docs-dashboard-card:hover::before {
    opacity: 1;
}
.docs-dashboard-card[hidden] {
    display: none !important;
}
.docs-dashboard-card h4 {
    margin-top: 0.1rem;
    margin-bottom: 0.85rem !important;
    font-size: 1.42rem !important;
    line-height: 1.16 !important;
    min-height: 3.3rem;
}
.docs-dashboard-card p {
    color: rgba(219, 234, 254, 0.80) !important;
    font-size: 1rem !important;
    line-height: 1.72 !important;
    min-height: 5.15rem;
}
.docs-dashboard-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.docs-dashboard-card-icon {
    width: 3.35rem !important;
    height: 3.35rem !important;
    margin-bottom: 0 !important;
    border-radius: 1.15rem !important;
}
.docs-dashboard-card-views {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding: 0.5rem 0.78rem;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(6, 17, 38, 0.60);
    font-size: 0.78rem;
    font-weight: 950;
}
.docs-dashboard-card-footer {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.55rem;
    color: #93c5fd !important;
    font-size: 0.86rem !important;
}
.docs-dashboard-card-footer i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(37, 99, 235, 0.58);
    transition: transform 0.18s ease;
}
.docs-dashboard-card:hover .docs-dashboard-card-footer i {
    transform: translateX(3px);
}

.docs-reader-body {
    max-width: 1040px !important;
    padding: clamp(1.5rem, 3vw, 2.6rem) !important;
    font-size: 1.1rem;
    line-height: 1.9;
}
.docs-reader-hero {
    padding: clamp(1.6rem, 3vw, 2.5rem) !important;
    background:
        linear-gradient(135deg, rgba(8, 22, 48, 0.82), rgba(18, 52, 102, 0.58)),
        radial-gradient(circle at 10% 0%, rgba(96, 165, 250, 0.22), transparent 32%) !important;
}
.docs-reader-title {
    font-size: clamp(2.6rem, 4.6vw, 4.7rem) !important;
}
.docs-reader-hero .docs-reader-summary {
    display: block !important;
    margin-top: 1rem;
    max-width: 58rem;
    color: rgba(219, 234, 254, 0.82);
    font-size: 1.08rem;
    line-height: 1.75;
}
.docs-reader-stat {
    min-width: 10.5rem !important;
    padding: 1.15rem 1.35rem !important;
    border-radius: 1.25rem !important;
}

@media (max-width: 720px) {
    .docs-dashboard-shell {
        padding: 1rem !important;
        border-radius: 1.1rem !important;
    }
    .docs-dashboard-hero,
    .docs-reader-hero {
        padding: 1rem;
        border-radius: 1rem;
    }
    .docs-dashboard-btn {
        width: 100%;
    }
    .docs-reader-stat {
        width: 100%;
    }
    .docs-dashboard-hero-pro {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .docs-dashboard-metrics {
        grid-template-columns: 1fr;
    }
    .docs-dashboard-metrics > div {
        min-height: 4.8rem;
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .docs-dashboard-metrics strong {
        font-size: 1.35rem;
    }
    .docs-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .docs-dashboard-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .docs-dashboard-card {
        min-height: 18rem !important;
    }
    .docs-dashboard-card h4,
    .docs-dashboard-card p {
        min-height: 0;
    }
}

@media (max-width: 1180px) {
    .docs-dashboard-hero-copy h3,
    .docs-dashboard-hero-copy p,
    .docs-dashboard-search {
        max-width: 100%;
    }
}

.docs-hero,
.docs-admin-top,
.docs-admin-panel,
.docs-article,
.docs-card,
.docs-sidebar,
.docs-admin-stats > div {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(17, 37, 71, 0.78);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.docs-hero,
.docs-admin-top { border-radius: 1.15rem; padding: clamp(1.25rem, 3vw, 2.1rem); display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; }
.docs-hero h1,
.docs-admin-top h1,
.docs-article h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; font-weight: 900; color: #fff; margin: 0.2rem 0 0.7rem; letter-spacing: 0; }
.docs-hero p,
.docs-admin-top p,
.docs-article-head p { color: #bfdbfe; max-width: 44rem; line-height: 1.7; }
.docs-kicker { display: inline-flex; align-items: center; gap: 0.5rem; color: #93c5fd; text-transform: uppercase; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.docs-search,
.docs-admin-filter { min-width: min(100%, 24rem); display: flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(96, 165, 250, 0.28); background: rgba(11, 27, 54, 0.82); border-radius: 0.85rem; padding: 0.8rem 1rem; color: #93c5fd; }
.docs-search input,
.docs-admin-filter input { width: 100%; background: transparent; border: 0; outline: 0; color: #fff; font-weight: 700; }
.docs-search input::placeholder,
.docs-admin-filter input::placeholder { color: rgba(219, 234, 254, 0.55); }
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.docs-sidebar { position: sticky; top: 6rem; border-radius: 1rem; padding: 0.75rem; display: grid; gap: 0.35rem; }
.docs-side-link { display: flex; align-items: center; gap: 0.75rem; color: #dbeafe; padding: 0.78rem 0.9rem; border-radius: 0.75rem; font-weight: 800; transition: 0.18s ease; }
.docs-side-link:hover,
.docs-side-link.active { color: #fff; background: rgba(37, 99, 235, 0.42); box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.24); }
.docs-content { min-width: 0; }
.docs-breadcrumb { display: flex; align-items: center; gap: 0.55rem; color: #93c5fd; font-size: 0.84rem; font-weight: 800; margin: 0 0 1rem; flex-wrap: wrap; }
.docs-breadcrumb a { color: #bfdbfe; }
.docs-article { border-radius: 1rem; padding: clamp(1.25rem, 3vw, 2.35rem); overflow: hidden; }
.docs-article-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 0.85rem; border: 1px solid rgba(96, 165, 250, 0.22); margin-bottom: 1.5rem; }
.docs-article-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(96, 165, 250, 0.18); margin-bottom: 1.4rem; }
.docs-stat { min-width: 7rem; border: 1px solid rgba(96, 165, 250, 0.2); background: rgba(11, 27, 54, 0.78); border-radius: 0.85rem; padding: 0.9rem; text-align: center; }
.docs-stat strong { display: block; color: #fff; font-size: 1.55rem; line-height: 1; }
.docs-stat span { color: #93c5fd; font-size: 0.76rem; font-weight: 900; text-transform: uppercase; }
.docs-video-note { display: flex; gap: 0.65rem; align-items: center; padding: 0.85rem 1rem; border-radius: 0.8rem; color: #bfdbfe; background: rgba(37, 99, 235, 0.16); border: 1px solid rgba(96, 165, 250, 0.2); margin-bottom: 1rem; font-weight: 800; }
.docs-rich pre { position: relative; }
.docs-copy-btn { position: absolute; right: 0.8rem; top: 0.8rem; border: 1px solid rgba(147, 197, 253, 0.3); background: rgba(37, 99, 235, 0.78); color: white; border-radius: 0.55rem; padding: 0.45rem 0.65rem; font-size: 0.78rem; font-weight: 900; }
.docs-faq-title { cursor: pointer; border: 1px solid rgba(96, 165, 250, 0.18); background: rgba(11, 27, 54, 0.7); border-radius: 0.75rem; padding: 0.85rem 1rem; margin-bottom: 0.4rem !important; }
.docs-faq-title::after { content: '+'; float: right; color: #93c5fd; }
.docs-faq-title.open::after { content: '-'; }
.docs-faq-body { display: none; padding: 0 1rem 1rem; }
.docs-faq-body.open { display: block; animation: docsFade 0.18s ease; }
.docs-article-actions,
.docs-admin-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.docs-article-actions { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(96, 165, 250, 0.16); }
.docs-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; border-radius: 0.78rem; padding: 0.78rem 1rem; color: #fff; font-weight: 900; background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26); cursor: pointer; transition: 0.18s ease; }
.docs-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.docs-button.secondary { background: rgba(11, 27, 54, 0.82); border: 1px solid rgba(96, 165, 250, 0.28); color: #dbeafe; box-shadow: none; }
.docs-button.danger { background: rgba(220, 38, 38, 0.92); box-shadow: 0 14px 32px rgba(220, 38, 38, 0.18); }
.docs-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; }
.docs-results h2 { color: #fff; font-weight: 900; margin: 0 0 0.9rem; }
.docs-card { border-radius: 0.85rem; padding: 1rem; color: #fff; display: grid; gap: 0.55rem; min-height: 10rem; transition: 0.18s ease; }
.docs-card:hover { transform: translateY(-2px); border-color: rgba(147, 197, 253, 0.7); }
.docs-card span { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: 0.75rem; background: rgba(37, 99, 235, 0.28); color: #93c5fd; }
.docs-card strong { font-size: 1.02rem; line-height: 1.25; }
.docs-card small { color: #bfdbfe; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.docs-empty { border: 1px dashed rgba(96, 165, 250, 0.35); border-radius: 1rem; padding: 2rem; text-align: center; color: #bfdbfe; background: rgba(17, 37, 71, 0.46); font-weight: 800; }
.docs-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.docs-admin-stats > div { border-radius: 0.9rem; padding: 1rem; }
.docs-admin-stats strong { display: block; font-size: 1.85rem; color: #fff; line-height: 1; }
.docs-admin-stats span { color: #93c5fd; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.docs-admin-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1rem; align-items: start; }
.docs-admin-panel { border-radius: 1rem; padding: 1rem; min-width: 0; overflow: hidden; }
.docs-guide-list { display: grid; gap: 0.55rem; max-height: 720px; overflow-y: auto; padding-right: 0.2rem; }
.docs-guide-item { display: flex; align-items: center; gap: 0.7rem; width: 100%; border: 1px solid rgba(96, 165, 250, 0.16); background: rgba(11, 27, 54, 0.68); color: #fff; border-radius: 0.8rem; padding: 0.8rem; text-align: left; cursor: grab; }
.docs-guide-item:hover { border-color: rgba(147, 197, 253, 0.6); background: rgba(37, 99, 235, 0.18); }
.docs-guide-item span { min-width: 0; display: grid; gap: 0.2rem; }
.docs-guide-item strong { overflow-wrap: anywhere; }
.docs-guide-item small { color: #bfdbfe; font-size: 0.76rem; }
.docs-editor-panel label,
.docs-category-form input,
.docs-category-form label { color: #dbeafe; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.docs-editor-panel input,
.docs-editor-panel textarea,
.docs-editor-panel select,
.docs-category-form input,
.docs-category-form select { width: 100%; margin-top: 0.4rem; border: 1px solid rgba(96, 165, 250, 0.22); background: rgba(11, 27, 54, 0.82); color: #fff; border-radius: 0.75rem; padding: 0.78rem 0.9rem; outline: 0; }
.docs-editor-panel textarea { min-height: 5.5rem; resize: vertical; }
.docs-form-row { display: grid; gap: 0.8rem; margin-bottom: 0.85rem; }
.docs-form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.docs-form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.docs-upload-inline { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0.85rem 0; }
.docs-upload-inline input[type="file"] { color: #bfdbfe; max-width: 18rem; }
.docs-check { display: inline-flex !important; align-items: center; gap: 0.5rem; margin: 0 !important; }
.docs-check input { width: auto !important; margin: 0 !important; accent-color: #60a5fa; }
.docs-admin-actions.bottom { justify-content: flex-end; margin-top: 1rem; }
.docs-autosave { color: #93c5fd; font-size: 0.8rem; font-weight: 800; margin-top: 0.7rem; text-align: right; }
.docs-admin-bottom { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; margin-top: 1rem; align-items: start; }
.docs-admin-bottom h2 { color: #fff; font-weight: 900; font-size: 1.05rem; margin-bottom: 0.9rem; }
.docs-category-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; align-items: end; }
.docs-chip-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.docs-chip-list button { border: 1px solid rgba(96, 165, 250, 0.22); background: rgba(11, 27, 54, 0.74); color: #dbeafe; border-radius: 999px; padding: 0.5rem 0.75rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.45rem; }
.docs-log-list { display: grid; gap: 0.55rem; max-height: 230px; overflow: auto; }
.docs-log-list div { border: 1px solid rgba(96, 165, 250, 0.14); background: rgba(11, 27, 54, 0.55); border-radius: 0.7rem; padding: 0.7rem; }
.docs-log-list strong { color: #fff; display: block; }
.docs-log-list span { color: #bfdbfe; font-size: 0.78rem; line-height: 1.4; }
.docs-modal { position: fixed; inset: 0; z-index: 80; background: rgba(3, 7, 18, 0.78); padding: 2rem; overflow: auto; }
.docs-modal > div { max-width: 980px; margin: 0 auto; position: relative; }
.docs-modal button#docsPreviewClose { position: absolute; right: 1rem; top: 1rem; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid rgba(96, 165, 250, 0.25); background: rgba(11, 27, 54, 0.9); color: #fff; border-radius: 0.7rem; }
.tox.tox-tinymce { border-color: rgba(96, 165, 250, 0.22) !important; border-radius: 0.85rem !important; overflow: hidden; margin-top: 0.5rem; }
@keyframes docsFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1024px) {
    .docs-layout,
    .docs-admin-grid,
    .docs-admin-bottom { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; display: flex; overflow-x: auto; }
    .docs-side-link { flex: 0 0 auto; }
}
@media (max-width: 720px) {
    .docs-hero,
    .docs-admin-top,
    .docs-article-head { flex-direction: column; align-items: stretch; }
    .docs-search { min-width: 0; }
    .docs-admin-stats,
    .docs-form-row.two,
    .docs-form-row.three,
    .docs-category-form { grid-template-columns: 1fr; }
    .docs-admin-actions { width: 100%; }
    .docs-button { width: 100%; }
    .docs-stat { width: 100%; }
}

/* ==========================================================================
   Karta (Leaflet)
   ========================================================================== */
.map-marker-custom { background: none !important; border: none !important; }

.map-marker-pin {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.25), 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.map-marker-pin:hover { transform: scale(1.15); }

.map-popup-custom .leaflet-popup-content-wrapper {
    background: rgba(17,37,71,0.96) !important;
    color: #fff !important;
    border: 1px solid rgba(96,165,250,0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
    padding: 0 !important;
    overflow: hidden;
}
.map-popup-custom .leaflet-popup-content { margin: 0 !important; padding: 14px 16px !important; min-width: 150px; }
.map-popup-custom .leaflet-popup-tip { background: rgba(17,37,71,0.96) !important; border: 1px solid rgba(96,165,250,0.2) !important; }
.map-popup-custom .leaflet-popup-close-button { color: rgba(148,163,184,0.6) !important; top: 6px !important; right: 6px !important; }
.map-popup-custom .leaflet-popup-close-button:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.map-popup-title { font-size: 14px; font-weight: 800; color: #fff; padding-left: 10px; border-left: 3px solid #60A5FA; margin-bottom: 4px; }
.map-popup-desc { font-size: 12px; color: rgba(148,163,184,0.85); line-height: 1.5; }
.map-popup-inner { position: relative; }

.leaflet-container { background: #0B1B36 !important; font-family: inherit !important; }
.leaflet-control-zoom a { background: rgba(11,27,54,0.9) !important; color: #fff !important; border: 1px solid rgba(96,165,250,0.2) !important; backdrop-filter: blur(12px); transition: all 0.15s; }
.leaflet-control-zoom a:hover { background: rgba(96,165,250,0.2) !important; border-color: rgba(96,165,250,0.35) !important; }
.leaflet-control-zoom { border: none !important; margin-right: 12px !important; margin-bottom: 12px !important; }
.leaflet-control-attribution { background: rgba(11,27,54,0.4) !important; color: rgba(148,163,184,0.5) !important; font-size: 10px !important; padding: 2px 8px !important; border-radius: 6px 0 0 0 !important; backdrop-filter: blur(8px); }
.leaflet-control-attribution a { color: rgba(148,163,184,0.6) !important; }

/* Röstning */
.rosta-page .bg-card { background: rgba(15,15,40,0.7); }

.vote-admin-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vote-admin-card:hover {
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.05);
}

.vote-site-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.vote-site-row:hover {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(15, 23, 42, 0.8);
}
.vote-site-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, 0.3), transparent);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.3s;
}
.vote-site-row:hover::before {
    opacity: 1;
}

/* Rosta page site cards */
.rosta-page .site-card-featured {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.rosta-page .site-card-featured:hover {
    transform: translateY(-4px);
}
.rosta-page .site-card-grid {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.rosta-page .site-card-grid:hover {
    transform: translateY(-4px);
}

/* Vote admin table */
.vote-log-table tbody tr {
    transition: all 0.2s ease;
}
.vote-log-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.04);
}

/* Bulk action bar */
.vote-bulk-bar {
    transition: all 0.2s ease;
}
.vote-bulk-bar:focus-within {
    border-color: rgba(96, 165, 250, 0.3);
}

/* Empty state */
.vote-empty-state .vote-empty-icon {
    transition: all 0.3s ease;
}
.vote-empty-state:hover .vote-empty-icon {
    transform: scale(1.05);
    opacity: 0.4;
}

/* Callback documentation code blocks */
.vote-doc-code {
    transition: all 0.2s ease;
}
.vote-doc-code:hover {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.03);
}

/* Add site button */
.vote-add-site-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vote-add-site-btn:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.03);
}
.vote-add-site-btn:active {
    transform: scale(0.99);
}

/* Site card XP badge pulse */
@keyframes xp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.rosta-page .xp-badge {
    animation: xp-pulse 2s ease-in-out infinite;
}

/* Vote button glow */
.rosta-page .vote-btn-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rosta-page .vote-btn-glow:hover {
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
    transform: translateY(-1px);
}

/* Vote admin page select option colors */
.vote-admin-card select option[value="none"] { color: #9CA3AF; }
.vote-admin-card select option[value="callback"] { color: #60A5FA; }
.vote-admin-card select option[value="manual"] { color: #FBBF24; }
