/* CACHE BUST: 1769982819 */
/**
 * RIFT - Bottom Dock & New Navigation
 * Redesign: Centered layout with bottom dock
 */

/* ========================================
   CSS VARIABLES (extend from core.css)
   ======================================== */

:root {
    --dock-height: 72px;
    --topnav-height-row1: 66px;
    --topnav-height-row2: 55px;
    --topnav-total-height: 121px;
    --content-max-width: 1500px;
}

/* ========================================
   TOP NAVIGATION - Container
   ======================================== */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TopNav Inner Container */
.topnav__inner {
    height: var(--topnav-height-row1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 50px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* ========================================
   TOP NAVIGATION - Row 1 (Primary - darker)
   ======================================== */

.topnav__row1 {
    height: var(--topnav-height-row1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 50px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    background: #1a1a1a;
}

.topnav__row1-bg {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo */
.topnav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.topnav__logo img {
    height: 30px; /* 25% größer (24 * 1.25) */
    width: auto;
}

/* Search - Dark Pill Style */
.topnav__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 0 16px;
    height: 40px;
    min-width: 180px;
    max-width: 280px;
    flex: 1;
    transition: all 0.2s ease;
    border: none;
}

.topnav__search:focus-within {
    background: rgba(255, 255, 255, 0.1);
}

.topnav__search svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.topnav__search input,
.topnav__search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    width: 100%;
}

.topnav__search input::placeholder,
.topnav__search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Spacer */
.topnav__spacer {
    flex: 1;
}

/* ========================================
   PARTY BADGE - Unified pill style (same as search)
   ======================================== */
.topnav__party {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    height: 40px !important;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topnav__party:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Avatars hidden in collapsed state */
.topnav__party-avatars {
    display: none !important;
}

.topnav__party-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
    margin-left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: white;
    overflow: hidden;
}

.topnav__party-avatar:first-child {
    margin-left: 0;
}

/* Single line layout: PARTY | X Online - MUST BE ROW! */
.topnav__party-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

.topnav__party-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.topnav__party-status,
.topnav__party-count {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #4ade80 !important;
}

/* ========================================
   ROOM CODE BADGE - Unified pill style (same as search/party)
   ======================================== */
.topnav__room,
.topnav__rtc {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    height: 40px !important;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topnav__room:hover,
.topnav__rtc:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.topnav__room svg,
.topnav__rtc svg {
    width: 14px !important;
    height: 14px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    flex-shrink: 0 !important;
}

.topnav__room code,
.topnav__room span,
.topnav__rtc span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   ICON BUTTONS - Just icons, no container
   ======================================== */
.topnav__icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav__icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.topnav__icon-btn:hover {
    color: var(--text);
}

.topnav__icon-btn svg {
    width: 22px;
    height: 22px;
}

.topnav__icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: none;
}

.topnav__icon-btn .badge.active {
    display: block;
}

/* ========================================
   USER BADGE - Dark pill with avatar
   ======================================== */
.topnav__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.topnav__user:hover {
    background: rgba(255, 255, 255, 0.12);
}

.topnav__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    background: #8b5cf6;
}

.topnav__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topnav__user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.topnav__pro-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 16px;
    color: #1a1200;
    background: linear-gradient(135deg, #f0d060, #bca24c);
    border-radius: 100px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(188, 162, 76, 0.3);
}

.topnav__pro-badge:hover {
    background: linear-gradient(135deg, #f5dc78, #d4b85a);
    box-shadow: 0 0 10px rgba(188, 162, 76, 0.5);
    transform: scale(1.05);
}

/* ========================================
   TOP NAVIGATION - Row 2 (Secondary - slightly lighter)
   ======================================== */

.topnav__row2 {
    height: var(--topnav-height-row2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    background: #111111;
}

.topnav__row2-bg {
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav__menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.topnav__menu-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.topnav__menu-item:hover {
    color: var(--text);
}

.topnav__menu-item.active {
    color: var(--accent);
}

.topnav__menu-item.active svg {
    color: var(--accent);
}

.topnav__menu-item svg {
    width: 14px;
    height: 14px;
}

.topnav__menu-chevron {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    margin-left: -2px;
}

/* Social Icons */
.topnav__social {
    display: flex;
    align-items: center;
    gap: 2px;
}

.topnav__social-link {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.topnav__social-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.topnav__social-link svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   BOTTOM DOCK - Full Width Bar
   ======================================== */

.dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10003; /* Above banners (9999) so tooltips show */
    height: var(--dock-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 24px;
    background: #222222;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   DOCK CHARACTER CARD
   ======================================== */
.dock__character-card {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 45px;
    width: 240px;
    padding: 0 12px 0 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.dock__character-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.dock__character-card.hidden {
    display: none;
}

.dock__char-portrait {
    width: 33px;
    height: 33px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock__char-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock__char-portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    color: var(--text-muted);
}

.dock__char-portrait-placeholder svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.dock__char-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.dock__char-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.dock__char-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.dock__char-level {
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.dock__char-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dock__char-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.dock__char-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.dock__char-bar--hp .dock__char-bar-fill {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%) !important;
}

.dock__char-bar--moral .dock__char-bar-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%) !important;
}

.dock__char-bar--resonanz .dock__char-bar-fill {
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%) !important;
}

/* Mobile: Hide character card */
@media (max-width: 900px) {
    .dock__character-card {
        display: none;
    }
}

/* ========================================
   DOCK SESSION CARD
   ======================================== */
.dock__session-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.dock__session-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.dock__session-card.hidden {
    display: none;
}

.dock__session-portrait {
    width: 33px;
    height: 33px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock__session-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock__session-portrait-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    color: var(--text-muted);
}

.dock__session-portrait-placeholder svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

/* Mobile: Hide session card */
@media (max-width: 900px) {
    .dock__session-card {
        display: none;
    }
}

/* Spacer between Character and Session Cards */
.dock__card-spacer {
    width: 15px;
    flex-shrink: 0;
}

/* ========================================
   DOCK CARD EMPTY STATES
   ======================================== */
.dock__card-empty {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.dock__card-empty svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s ease;
}

.dock__character-card.dock__card--empty:hover .dock__card-empty,
.dock__session-card.dock__card--empty:hover .dock__card-empty {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.dock__character-card.dock__card--empty:hover .dock__card-empty svg,
.dock__session-card.dock__card--empty:hover .dock__card-empty svg {
    color: var(--accent, #8b5cf6);
}

.dock__char-name--empty {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

.dock__character-card.dock__card--empty:hover .dock__char-name--empty {
    color: var(--accent, #8b5cf6) !important;
}

/* ========================================
   QUICK DICE SLOTS
   ======================================== */
.dock__quick-dice {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dock__dice-slot {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    padding: 0;
}

.dock__dice-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dock__dice-slot:active {
    transform: translateY(0);
}

.dock__dice-slot--empty {
    border-style: dashed;
}

.dock__dice-slot--empty .dock__dice-icon svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.dock__dice-slot--empty:hover .dock__dice-icon svg {
    color: rgba(255, 255, 255, 0.5);
}

.dock__dice-slot--configured {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.dock__dice-slot--configured:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dock__dice-slot--rolling {
    animation: diceRoll 0.3s ease;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.dock__dice-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dock__dice-icon svg {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
}

.dock__dice-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.5);
    transition: filter 0.15s ease;
}

.dock__dice-slot:hover .dock__dice-img {
    filter: brightness(0) invert(0.7);
}

.dock__dice-mod {
    position: absolute;
    bottom: -4px;
    right: -6px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
}

.dock__dice-count {
    position: absolute;
    top: -4px;
    left: -4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.3);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile: Hide quick dice */
@media (max-width: 900px) {
    .dock__quick-dice {
        display: none;
    }
}

/* ========================================
   QUICK DICE TOOLTIP
   ======================================== */
.quick-dice-tooltip {
    position: fixed;
    z-index: 10010;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.quick-dice-tooltip.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quick-dice-tooltip__header {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.quick-dice-tooltip__label-top {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent, #8b5cf6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.quick-dice-tooltip__formula {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 10px;
}

.quick-dice-tooltip__dice-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(0.7);
    flex-shrink: 0;
}

.quick-dice-tooltip__formula-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.quick-dice-tooltip__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.quick-dice-tooltip__detail {
    font-size: 11px;
    color: var(--text-muted, #888);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
}

.quick-dice-tooltip__label {
    font-size: 12px;
    color: var(--text-muted, #888);
    margin-bottom: 10px;
}

.quick-dice-tooltip__hint {
    font-size: 11px;
    color: var(--text-muted, #888);
}

.quick-dice-tooltip__section {
    margin-bottom: 12px;
}

.quick-dice-tooltip__section label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.quick-dice-tooltip__dice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.quick-dice-tooltip__dice-btn {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted, #888);
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-dice-tooltip__dice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.quick-dice-tooltip__dice-btn.active {
    background: var(--accent, #8b5cf6);
    border-color: var(--accent, #8b5cf6);
    color: #fff;
}

.quick-dice-tooltip__row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-dice-tooltip__field {
    flex: 1;
}

.quick-dice-tooltip__field label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.quick-dice-tooltip__field input,
.quick-dice-tooltip__section input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.quick-dice-tooltip__field input:focus,
.quick-dice-tooltip__section input:focus {
    border-color: var(--accent, #8b5cf6);
}

.quick-dice-tooltip__field input[type="number"] {
    text-align: center;
}

.quick-dice-tooltip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-dice-tooltip__btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-dice-tooltip__btn svg {
    flex-shrink: 0;
}

.quick-dice-tooltip__btn--roll {
    background: var(--accent, #8b5cf6);
    color: #fff;
}

.quick-dice-tooltip__btn--roll:hover {
    background: #7c3aed;
}

.quick-dice-tooltip__btn--edit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.quick-dice-tooltip__btn--edit:hover {
    background: rgba(255, 255, 255, 0.15);
}

.quick-dice-tooltip__btn--save {
    background: #22c55e;
    color: #fff;
}

.quick-dice-tooltip__btn--save:hover {
    background: #16a34a;
}

.quick-dice-tooltip__btn--delete {
    background: #ef4444;
    color: #fff;
}

.quick-dice-tooltip__btn--delete:hover {
    background: #dc2626;
}

.quick-dice-tooltip__btn--cancel {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #888);
}

.quick-dice-tooltip__btn--cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ========================================
   DOCK CARD TOOLTIPS
   ======================================== */
.dock-card-tooltip {
    position: fixed;
    z-index: 10010;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 180px;
    max-width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dock-card-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.dock-tooltip__header {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-tooltip__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-tooltip__header-row .dock-tooltip__header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dock-tooltip__level {
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.dock-tooltip__info-line {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dock-tooltip__subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.dock-tooltip__section {
    margin-bottom: 10px;
}

.dock-tooltip__section:last-child {
    margin-bottom: 0;
}

.dock-tooltip__label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dock-tooltip__label-bg {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-left: -8px;
    margin-right: -8px;
}

.dock-tooltip__attrs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dock-tooltip__attr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    min-width: 36px;
}

.dock-tooltip__attr-val {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.dock-tooltip__attr-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
}

.dock-tooltip__focus-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.dock-tooltip__focus-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dock-tooltip__focus-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.dock-tooltip__focus {
    font-size: 13px;
    color: #a78bfa;
    font-weight: 500;
    text-transform: capitalize;
}

.dock-tooltip__ability {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    padding-left: 4px;
}

.dock-tooltip__ability::before {
    content: '•';
    margin-right: 6px;
    opacity: 0.5;
}

.dock-tooltip__weakness {
    font-size: 12px;
    color: #f87171;
}

.dock-tooltip__chance {
    font-size: 13px;
    color: #fbbf24;
    font-weight: 500;
}

.dock-tooltip__chance-icons {
    display: flex;
    gap: 6px;
}

.dock-tooltip__d20 {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(70%);
    transition: opacity 0.15s ease;
}

.dock-tooltip__d20.used {
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(30%);
}

.dock-tooltip__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.dock-tooltip__role-crew-row {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.dock-tooltip__role-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dock-tooltip__role-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dock-tooltip__role-value {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.dock-tooltip__crew {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dock-tooltip__stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dock-tooltip__stat {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dock-tooltip__stat svg {
    flex-shrink: 0;
}

.dock-tooltip__stat--hp {
    color: #4ade80;
}

.dock-tooltip__stat--moral {
    color: #60a5fa;
}

.dock-tooltip__stat--resonanz {
    color: #a78bfa;
}

.dock-tooltip__weapon {
    font-size: 12px;
    color: #fbbf24;
}

.dock-tooltip__currency-value {
    font-size: 12px;
    font-weight: 500;
    color: #22c55e;
}

.dock-tooltip__meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dock-tooltip__ruleset {
    font-size: 11px;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.dock-tooltip__session-num {
    font-size: 12px;
    color: var(--text-muted);
}

.dock-tooltip__status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dock-tooltip__session-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.dock-tooltip__session-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dock-tooltip__info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.dock-tooltip__info-row svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.dock-tooltip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.dock-tooltip__tag {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
}

.dock__item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.dock__item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.dock__item.active {
    background: var(--accent);
    color: white;
}

.dock__item.active:hover {
    background: var(--accent-hover);
}

.dock__item svg {
    width: 22px;
    height: 22px;
}

/* Dock Divider */
.dock__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

/* GM Item (special) - only icon colored, no background */
.dock__item--gm {
    background: none;
}

.dock__item--gm:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dock__item--gm svg {
    color: #A855F7;
}

/* Tooltip */
.dock__item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    pointer-events: none;
    z-index: 10002; /* Above banners (9999) */
}

.dock__item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MAIN CONTENT ADJUSTMENTS
   ======================================== */

/* Ensure content doesn't overlap with fixed dock */
.app {
    padding-bottom: var(--dock-height);
}

/* Remove old sidebar offset */
.main--with-sidebar {
    margin-left: 0 !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .topnav__search {
        max-width: 180px;
        min-width: 140px;
    }
    
    .topnav__party-label {
        display: none;
    }
}

@media (max-width: 900px) {
    .topnav__row1 {
        padding: 0 16px;
        gap: 12px;
    }
    
    .topnav__row2 {
        padding: 0 16px;
        overflow-x: auto;
    }
    
    .topnav__search {
        display: none;
    }
    
    .topnav__rtc span:not(:first-child) {
        display: none;
    }
    
    .dock {
        padding: 0 16px;
        gap: 2px;
    }
    
    .dock__item {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .topnav__row2,
    .topnav__row2-bg {
        display: none;
    }
    
    :root {
        --topnav-total-height: 48px;
    }
    
    .topnav__user-name {
        display: none;
    }
    
    .topnav__party-count {
        display: none;
    }
    
    .dock__item {
        width: 36px;
        height: 36px;
    }
    
    .dock__item svg {
        width: 20px;
        height: 20px;
    }
    
    .dock__item::before {
        display: none;
    }
    
    .dock__divider {
        margin: 0 4px;
    }
}

/* ========================================
   NEW TOPNAV & MEGANAV STYLES
   ======================================== */

.topnav__search svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.topnav__search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 12px;
    width: 100%;
}

.topnav__search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.topnav__search-dropdown,
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    padding: 8px;
}

.topnav__search-dropdown.active,
.search-dropdown.active {
    display: block;
}

/* Search Result Category */
.search-dropdown__category {
    padding: 8px 12px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* Search Result Item */
.search-dropdown__item,
.search-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.15s;
    font-size: 13px;
    font-weight: 500;
}

.search-dropdown__item:hover,
.search-dropdown a:hover {
    background: rgba(255, 70, 85, 0.1);
}

.search-dropdown__item-icon,
.search-dropdown a span:first-child {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* Search Empty State */
.search-dropdown__empty {
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Right Section */
.topnav__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Divider */
.topnav__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

/* Icon Wrapper */
.topnav__icon-wrapper {
    position: relative;
}

/* Badge */
.topnav__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Room Code */
.topnav__room {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 28px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topnav__room:hover {
    border-color: rgba(74, 222, 128, 0.4);
}

.topnav__room svg {
    width: 14px;
    height: 14px;
    color: #4ade80;
}

.topnav__room code {
    font-size: 11px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 1px;
}

/* Party Status */
.topnav__party-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.topnav__party-status {
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
}

/* ========================================
   DROPDOWN SYSTEM
   ======================================== */

.topnav__dropdown-trigger {
    position: relative;
}

.topnav__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.topnav__dropdown-trigger.open .topnav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topnav__dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav__dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.topnav__dropdown-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.topnav__dropdown-body {
    padding: 8px;
}

.topnav__dropdown-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.topnav__dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.topnav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
    font-size: 13px;
    font-weight: 500;
}

.topnav__dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.topnav__dropdown-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.topnav__dropdown-item--danger {
    color: #ef4444;
}

.topnav__dropdown-item--danger svg {
    color: #ef4444;
}

/* Room Code in Dropdown */
.topnav__dropdown-room-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(74, 222, 128, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav__dropdown-room-code code {
    font-size: 24px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 3px;
}

.topnav__dropdown-room-copy {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 8px;
    color: #4ade80;
    cursor: pointer;
    transition: all 0.2s;
}

.topnav__dropdown-room-copy:hover {
    background: rgba(74, 222, 128, 0.2);
}

.topnav__dropdown-room-copy svg {
    width: 18px;
    height: 18px;
}

/* Party Member in Dropdown */
.topnav__dropdown-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}

.topnav__dropdown-member:hover {
    background: rgba(255, 255, 255, 0.03);
}

.topnav__dropdown-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.topnav__dropdown-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topnav__dropdown-member-info {
    flex: 1;
}

.topnav__dropdown-member-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.topnav__dropdown-member-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.topnav__dropdown-member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
}

.topnav__dropdown-member-status--offline {
    background: rgba(255, 255, 255, 0.2);
}

/* User Dropdown */
.topnav__dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav__dropdown-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.topnav__dropdown-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topnav__dropdown-user-info {
    flex: 1;
}

.topnav__dropdown-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.topnav__dropdown-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.notifications-dropdown__content {
    padding: 8px;
}

.notifications-dropdown__empty {
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ========================================
   MEGA NAVIGATION
   ======================================== */

.meganav {
    position: fixed;
    top: var(--topnav-height-row1);
    left: 0;
    right: 0;
    z-index: 999;
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.meganav__inner {
    height: var(--topnav-height-row2);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 50px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.meganav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.meganav__item:hover,
.meganav__item.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.meganav__item.active {
    color: var(--accent);
}

.meganav__item--link {
    cursor: pointer;
}

.meganav__item svg {
    width: 18px;
    height: 18px;
}

.meganav__item .chevron {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.meganav__item.open .chevron {
    transform: rotate(180deg);
}

.meganav__spacer {
    flex: 1;
}

/* Social Links */
.meganav__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meganav__pro-link {
    display: flex;
    align-items: center;
    margin-right: 6px;
    opacity: 0.7;
    transition: opacity 0.2s, filter 0.2s;
    filter: drop-shadow(0 0 0px transparent);
}

.meganav__pro-link:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(188, 162, 76, 0.4));
}

.meganav__social-link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    transition: all 0.2s;
}

.meganav__social-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Social Link Hover Colors */
.meganav__social-link--discord:hover {
    color: #5865F2;
}

.meganav__social-link--heart:hover {
    color: #ef4444;
}

.meganav__social-link--email:hover {
    color: #3b82f6;
}

.meganav__social-link svg {
    width: 14px;
    height: 14px;
}

/* Mega Dropdown */
.meganav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 400px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    padding: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.meganav__item.open .meganav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.meganav__dropdown--wide {
    min-width: 520px;
}

/* Guide Dropdown */
.meganav__dropdown-grid--guide {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.meganav__dropdown-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 4px 8px;
}

.meganav__dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 0;
}

.meganav__guide-card .meganav__dropdown-card-desc {
    font-size: 11px;
    line-height: 1.3;
}

/* Ruleset Image Buttons */
.meganav__dropdown--rulesets {
    min-width: auto;
    padding: 12px;
}

.meganav__ruleset-grid {
    display: grid;
    grid-template-columns: repeat(4, 140px);
    gap: 10px;
    justify-content: center;
}

.meganav__ruleset-btn {
    display: block;
    width: 140px;
    height: 59px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.meganav__ruleset-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.meganav__ruleset-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.meganav__ruleset-btn:hover img {
    transform: scale(1.05);
}

.meganav__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.meganav__dropdown-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

/* Dropdown Cards */
.meganav__dropdown-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.meganav__dropdown-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.meganav__dropdown-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-shrink: 0;
}

.meganav__dropdown-card-icon svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.7);
}

.meganav__dropdown-card-icon--accent {
    background: rgba(255, 70, 85, 0.1);
}

.meganav__dropdown-card-icon--accent svg {
    color: var(--accent);
}

.meganav__dropdown-card-content {
    flex: 1;
    min-width: 0;
}

.meganav__dropdown-card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 70, 85, 0.15);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meganav__dropdown-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meganav__dropdown-card-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Ruleset Cards */
.meganav__dropdown-card--ruleset {
    flex-direction: row;
    padding: 12px 14px;
}

.meganav__dropdown-card--ruleset:hover {
    border-color: var(--ruleset-color, rgba(255, 255, 255, 0.2));
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.meganav__dropdown-card-ruleset-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .topnav__inner {
        padding: 0 16px;
    }
    
    .topnav__search {
        min-width: 100px;
        max-width: 140px;
    }
    
    .topnav__user-name {
        display: none;
    }
    
    .topnav__party-info {
        display: none;
    }
    
    .meganav__inner {
        padding: 0 16px;
        overflow-x: auto;
    }
    
    .meganav__social {
        display: none;
    }
    
    .meganav__dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        min-width: unset;
    }
    
    .meganav__dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .meganav__dropdown-grid--guide {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   HOVER-BASED DROPDOWNS for Party & Room
   ======================================== */

/* Party Dropdown opens on hover */
#partyTrigger:hover .topnav__dropdown,
#roomTrigger:hover .topnav__dropdown,
#userTrigger:hover .topnav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keep dropdown open when hovering over it */
#partyTrigger .topnav__dropdown:hover,
#roomTrigger .topnav__dropdown:hover,
#userTrigger .topnav__dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   UNIFIED FOOTER
   Full 4-column footer layout
   ======================================== */

.footer {
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 24px;
    padding-bottom: 100px;
    margin-top: auto;
    flex-shrink: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: var(--content-max-width);
    margin: 0 auto 32px;
    padding: 0 50px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__logo {
    display: inline-flex;
    text-decoration: none;
}

.footer__logo img {
    height: 24px;
    width: auto;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__column-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer__nav a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px 50px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.footer__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer__separator {
    color: rgba(255, 255, 255, 0.2);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s;
}

.footer__social a:hover {
    color: #fff;
}

/* Footer Social Link Hover Colors */
.footer__social-link--discord:hover {
    color: #5865F2 !important;
}

.footer__social-link--heart:hover {
    color: #ef4444 !important;
}

.footer__social-link--email:hover {
    color: #3b82f6 !important;
}

.footer__social svg {
    width: 20px;
    height: 20px;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer__brand {
        grid-column: 1 / -1;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ========================================
   MEGANAV BANNERS
   ======================================== */

.meganav__banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.meganav__banner:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Session Banner Cover */
.meganav__banner-cover {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.meganav__banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Character Banner Portrait */
.meganav__banner-portrait {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.meganav__banner-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meganav__banner-portrait svg {
    width: 28px;
    height: 28px;
}

/* Banner Info */
.meganav__banner-info {
    flex: 1;
    min-width: 0;
}

.meganav__banner-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.meganav__banner-meta img {
    vertical-align: middle;
}

.meganav__banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meganav__banner-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Session Date Badge */
.meganav__banner-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 10px;
    background: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
    line-height: 1;
}

.meganav__banner-date-day {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.meganav__banner-date-num {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 1px 0;
}

.meganav__banner-date-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Empty State */
.meganav__banner-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.meganav__banner-empty svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.15);
}

/* Live session date badge variant */
.meganav__banner-date--live {
    background: #10b981;
    min-width: 52px;
    padding: 12px 10px;
}

.meganav__banner-date--live .meganav__banner-date-day {
    font-size: 12px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

/* Multiple session banners spacing */
#meganavSessionList .meganav__banner + .meganav__banner {
    margin-top: 8px;
}

/* Session Pill in TopNav */
.topnav__session-pill-wrap {
    position: relative;
}

.topnav__session-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.topnav__session-pill:hover {
    filter: brightness(1.3);
    transform: translateY(-1px);
}

.topnav__session-pill--live {
    animation: sessionPillPulse 2s ease-in-out infinite;
}

@keyframes sessionPillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 8px 2px rgba(16, 185, 129, 0.3); }
}

.topnav__session-pill svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Session Pill Hover Tooltip */
.topnav__session-pill-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 200px;
    max-width: 300px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.topnav__session-pill-wrap:hover .topnav__session-pill-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-tooltip__name {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.sp-tooltip__subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.sp-tooltip__ruleset {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-tooltip__date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.sp-tooltip__live {
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    margin-top: 4px;
}

/* D&D 5e Tooltip Styles */
.dock-tooltip__class-line {
    font-size: 13px;
    font-weight: 600;
    color: #ff4655;
    margin-top: -2px;
    margin-bottom: 2px;
}

.dock-tooltip__level--5e {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dock-tooltip__combat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dock-tooltip__stat--ac {
    color: #818cf8 !important;
}

.dock-tooltip__stat--speed {
    color: #38bdf8 !important;
}

.dock-tooltip__stat--temp {
    color: #a78bfa;
    font-size: 11px;
    opacity: 0.8;
}

.dock-tooltip__heroic-insp {
    font-size: 11px;
    color: #fbbf24;
    margin-bottom: 4px;
    font-weight: 500;
}

.dock-tooltip__attrs--6col {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px;
}

.dock-tooltip__attr-box--5e {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.dock-tooltip__attr-mod {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.dock-tooltip__prof-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.dock-tooltip__prof-item {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.dock-tooltip__death-saves {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
    font-size: 11px;
}

.dock-tooltip__death-label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 4px;
    font-size: 10px;
}

.dock-tooltip__death-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dock-tooltip__death-dot--success {
    background: #22c55e;
    border-color: #22c55e;
}

.dock-tooltip__death-dot--fail {
    background: #ef4444;
    border-color: #ef4444;
}

.dock-tooltip__label-bg--warn {
    color: #f59e0b !important;
}

.dock-tooltip__conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dock-tooltip__condition-chip {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #fca5a5;
    text-transform: capitalize;
}

.dock-tooltip__spell-slots {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.dock-tooltip__spell-slots svg {
    color: #a78bfa;
}

.dock-tooltip__coins-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dock-tooltip__coin {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}

.dock-tooltip__coin--pp { color: #c4b5fd; background: rgba(196, 181, 253, 0.1); }
.dock-tooltip__coin--gp { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.dock-tooltip__coin--ep { color: #a3e635; background: rgba(163, 230, 53, 0.1); }
.dock-tooltip__coin--sp { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
.dock-tooltip__coin--cp { color: #f97316; background: rgba(249, 115, 22, 0.1); }

.dock-tooltip__exhaust-row {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dock-tooltip__exhaust-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dock-tooltip__exhaust-dot.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

.dock-tooltip__exhaust-num {
    font-size: 11px;
    color: #f59e0b;
    margin-left: 4px;
}

/* Session Pill Tooltip - enriched */
.sp-tooltip__header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.sp-tooltip__status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-tooltip__meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 4px;
}

.sp-tooltip__ruleset-badge {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-tooltip__session-num {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.sp-tooltip__duration {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

.sp-tooltip__players {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.sp-tooltip__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.sp-tooltip__tag {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
}

/* D&D 5e Tooltip — Saves, Skills, Passive, Spell Stats, Senses */
.dock-tooltip__saves-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dock-tooltip__save-chip {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', monospace;
}

.dock-tooltip__save-chip--prof {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-weight: 600;
}

.dock-tooltip__passive-row {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.dock-tooltip__passive-row strong {
    color: #fbbf24;
    font-weight: 700;
}

.dock-tooltip__skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.dock-tooltip__skill-chip {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.dock-tooltip__skill-chip--expert {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.dock-tooltip__spell-stats {
    font-size: 12px;
    color: #c4b5fd;
    font-weight: 600;
}

.dock-tooltip__senses {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.dock-tooltip__def-row {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.dock-tooltip__def-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ═══ Hub Character Panel — D&D 5e Extended ═══ */
.cpanel-5e__ext {
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpanel-5e__combat-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cpanel-5e__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__stat svg { flex-shrink: 0; }

.cpanel-5e__stat--ac { color: #818cf8; }
.cpanel-5e__stat--speed { color: #38bdf8; }
.cpanel-5e__stat small { font-weight: 400; opacity: 0.6; }

.cpanel-5e__heroic {
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.cpanel-5e__death-saves {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cpanel-5e__ds-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.cpanel-5e__ds-dot--ok { background: #22c55e; border-color: #22c55e; }
.cpanel-5e__ds-dot--fail { background: #ef4444; border-color: #ef4444; }

.cpanel-5e__section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cpanel-5e__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__label--warn { color: #f59e0b; }

.cpanel-5e__saves,
.cpanel-5e__skills,
.cpanel-5e__conditions,
.cpanel-5e__coins {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cpanel-5e__save {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', monospace;
    font-weight: 500;
}

.cpanel-5e__save--prof {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-weight: 700;
}

.cpanel-5e__skill {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__skill--expert {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}

.cpanel-5e__weapon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__spell {
    font-size: 12px;
    color: #c4b5fd;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__condition {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    text-transform: capitalize;
}

.cpanel-5e__exhaust {
    display: flex;
    gap: 4px;
}

.cpanel-5e__ex-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cpanel-5e__ex-dot.active {
    background: #f59e0b;
    border-color: #f59e0b;
}

.cpanel-5e__def {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.cpanel-5e__coin {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.cpanel-5e__misc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Attr modifier in hub panel */
.character-panel__attr-mod {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Level badge in meta */
.character-panel__badge--level {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
}
