/* ================================================
   D2R REIGN OF THE WARLOCK — SHARED THEME
   Based on original backup design + subtle modernizations
   ================================================ */

/* === RESET & VARIABLES === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --d2r-gold: #c7b377;
    --d2r-gold-bright: #e8d5a3;
    --d2r-gold-dark: #8b7355;
    --d2r-gold-glow: rgba(199, 179, 119, 0.3);
    --d2r-red: #8b0000;
    --d2r-red-bright: #c41e3a;
    --d2r-red-glow: rgba(196, 30, 58, 0.4);
    --d2r-purple: #800080;
    --d2r-purple-bright: #bf7fff;
    --bg-darkest: #060402;
    --bg-dark: #0a0806;
    --bg-card: #1a1510;
    --bg-card-alt: #0f0c08;
    --text: #e8dcc8;
    --text-muted: #a89880;
    --text-dim: #6b5e4f;
    --border: #3d3425;
    --border-gold: #5a4a30;
    --border-gold-bright: #8b7355;
    --header-height: 80px;
    --nav-height: 45px;
    --radius: 4px;
    --radius-lg: 6px;
    --transition: 0.3s ease;
    /* Act tinting colors */
    --act-1: rgba(40, 100, 40, 0.35);
    --act-2: rgba(180, 150, 80, 0.35);
    --act-3: rgba(40, 80, 140, 0.35);
    --act-4: rgba(160, 40, 30, 0.35);
    --act-5: rgba(140, 160, 200, 0.35);
    --act-tint: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    background: var(--bg-dark);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(199, 179, 119, 0.007) 2px,
            rgba(199, 179, 119, 0.007) 4px
        ),
        radial-gradient(ellipse at top, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    color: var(--text);
    line-height: 1.4;
    font-size: 0.9rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* === NOISE OVERLAY (disabled) === */

/* === SELECTION (Diablo Red+Gold) === */
::selection {
    background: var(--d2r-red);
    color: var(--d2r-gold-bright);
}

/* === SCROLLBAR (Diablo Gold) === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb {
    background: var(--d2r-gold-dark);
    border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover { background: var(--d2r-gold); }
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--d2r-gold-dark) var(--bg-darkest); }

/* overlays removed */

/* Act tinting */
body.act-1 { --act-tint: var(--act-1); }
body.act-2 { --act-tint: var(--act-2); }
body.act-3 { --act-tint: var(--act-3); }
body.act-4 { --act-tint: var(--act-4); }
body.act-5 { --act-tint: var(--act-5); }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--act-tint);
    pointer-events: none;
    z-index: 0;
    transition: background 1.5s ease;
}

/* === VIGNETTE OVERLAY === */
.vignette-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* === FLOATING PARTICLES (CSS-only Ember/Ashe) === */
.particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particles span {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: var(--d2r-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particle-rise linear infinite;
}

.particles span:nth-child(1)  { left: 5%;  animation-duration: 12s; animation-delay: 0s;   width: 2px; height: 2px; }
.particles span:nth-child(2)  { left: 12%; animation-duration: 15s; animation-delay: 2s;   width: 3px; height: 3px; }
.particles span:nth-child(3)  { left: 20%; animation-duration: 18s; animation-delay: 4s;   width: 2px; height: 2px; }
.particles span:nth-child(4)  { left: 28%; animation-duration: 14s; animation-delay: 1s;   width: 4px; height: 4px; }
.particles span:nth-child(5)  { left: 35%; animation-duration: 16s; animation-delay: 6s;   width: 2px; height: 2px; }
.particles span:nth-child(6)  { left: 42%; animation-duration: 20s; animation-delay: 3s;   width: 3px; height: 3px; }
.particles span:nth-child(7)  { left: 50%; animation-duration: 13s; animation-delay: 7s;   width: 2px; height: 2px; }
.particles span:nth-child(8)  { left: 58%; animation-duration: 17s; animation-delay: 0.5s; width: 3px; height: 3px; }
.particles span:nth-child(9)  { left: 65%; animation-duration: 11s; animation-delay: 5s;   width: 2px; height: 2px; }
.particles span:nth-child(10) { left: 72%; animation-duration: 19s; animation-delay: 2.5s; width: 4px; height: 4px; }
.particles span:nth-child(11) { left: 78%; animation-duration: 15s; animation-delay: 8s;   width: 2px; height: 2px; }
.particles span:nth-child(12) { left: 85%; animation-duration: 14s; animation-delay: 4.5s; width: 3px; height: 3px; }
.particles span:nth-child(13) { left: 90%; animation-duration: 16s; animation-delay: 1.5s; width: 2px; height: 2px; }
.particles span:nth-child(14) { left: 95%; animation-duration: 12s; animation-delay: 6.5s; width: 3px; height: 3px; }
.particles span:nth-child(15) { left: 3%;  animation-duration: 18s; animation-delay: 9s;   width: 2px; height: 2px; }
.particles span:nth-child(16) { left: 15%; animation-duration: 13s; animation-delay: 3.5s; width: 2px; height: 2px; }
.particles span:nth-child(17) { left: 38%; animation-duration: 15s; animation-delay: 7.5s; width: 3px; height: 3px; }
.particles span:nth-child(18) { left: 55%; animation-duration: 17s; animation-delay: 10s;  width: 2px; height: 2px; }

@keyframes particle-rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.6; }
    50%  { opacity: 0.3; }
    90%  { opacity: 0.1; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* === HEADER — CINEMATIC === */
.hero-header {
    position: relative;
    background: linear-gradient(180deg, #1a0a0a 0%, #0a0505 100%);
    padding: 0.8rem 1rem 0.5rem;
    text-align: center;
    z-index: 2;
    overflow: hidden;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--d2r-gold);
    letter-spacing: 2px;
    animation: title-glow 4s ease-in-out infinite;
}

.hero-title::before,
.hero-title::after {
    content: '⚔';
    margin: 0 0.5rem;
    color: var(--d2r-red);
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(199,179,119,0.2); }
    50%      { text-shadow: 0 0 16px rgba(199,179,119,0.4), 0 0 30px rgba(199,179,119,0.1); }
}

.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.2rem 0;
}

.gold-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--d2r-gold), transparent);
}

.gold-diamond {
    color: var(--d2r-gold);
    font-size: 0.6rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
}

.lang-toggle button {
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    border: 1px solid var(--border-gold);
    color: var(--d2r-gold);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    margin: 0 0.1rem;
    -webkit-tap-highlight-color: transparent;
    transition: var(--transition);
}

.lang-toggle button.active {
    border-color: var(--d2r-gold);
    color: var(--d2r-gold-bright);
    background: linear-gradient(180deg, #3a2a1a 0%, #2a2015 100%);
}

/* === NAV ICONS === */
.nav-icon {
    vertical-align: -2px;
    margin-right: 4px;
    opacity: 0.8;
    transition: opacity 0.3s, filter 0.3s;
}
nav a:hover .nav-icon {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--d2r-gold));
}

/* === NAVIGATION — GLASSMORPHISM === */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(10, 8, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(199,179,119,0.15);
}

nav {
    background: transparent;
    padding: 0.4rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

nav a {
    color: var(--d2r-gold);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(199,179,119,0.2);
    background: transparent;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--d2r-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--d2r-gold-bright);
    border-color: rgba(199,179,119,0.4);
}

nav a.active {
    color: var(--d2r-gold-bright);
    border-color: rgba(199,179,119,0.3);
}

nav a.active::after {
    width: 100%;
    animation: pulse-underline 2s ease-in-out infinite;
}

@keyframes pulse-underline {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* Hamburger Menu (mobile) */
.hamburger {
    display: none;
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    border: 1px solid var(--border-gold);
    color: var(--d2r-gold);
    font-size: 1.2rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    margin: 0.4rem auto;
    text-align: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    border-color: var(--d2r-gold);
    color: var(--d2r-gold-bright);
}

/* === MAIN CONTENT === */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* === WIDGET / CARD === */
.widget,
section {
    background: linear-gradient(180deg, #1a1510 0%, #0f0c08 100%);
    border: 2px solid var(--d2r-gold-dark);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.widget:hover,
section:hover {
    box-shadow: 0 0 15px rgba(199, 179, 119, 0.05);
}

.widget h2,
section h2 {
    font-size: 1.2rem;
    color: var(--d2r-gold);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 2px;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--d2r-gold-dark);
}

/* === TZ TRACKER === */
.tz-current {
    background: linear-gradient(180deg, #2a0000 0%, #1a0000 100%);
    border: 2px solid var(--d2r-red-bright);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tz-current .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tz-current .zone {
    font-size: 1.4rem;
    color: var(--d2r-gold-bright);
    margin: 0.5rem 0;
    font-weight: 600;
}

.tz-current .act {
    font-size: 0.7rem;
    color: var(--d2r-gold-dark);
    letter-spacing: 2px;
    margin-top: 0.2rem;
}

.tz-immunities { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.tz-boss-packs { font-size: 0.65rem; color: var(--text-muted); }
.tz-zone-meta { text-align: center; margin-top: 0.15rem; }

.map-size {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    letter-spacing: 1px;
}

.tz-superuniques { font-size: 0.65rem; color: var(--d2r-red-bright); }

.tz-countdown {
    font-size: 2rem;
    color: var(--d2r-red-bright);
    font-weight: 700;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px var(--d2r-red-glow);
}

.tz-countdown.warning {
    animation: pulse-warning 1s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tz-next {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: rgba(26, 21, 16, 0.8);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.tz-next .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tz-next .zone {
    font-size: 1.1rem;
    color: var(--d2r-gold);
    margin-top: 0.3rem;
}

.tz-status {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* === DCLONE === */
.dclone-mini {
    background: linear-gradient(180deg, #1a0020 0%, #0f0015 100%);
    border: 2px solid var(--d2r-purple);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.dclone-mini h3 {
    font-size: 0.9rem;
    color: var(--d2r-purple-bright);
    margin-bottom: 0.75rem;
    text-align: center;
}

.dclone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.dclone-region {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #3a003a;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    text-align: center;
    transition: var(--transition);
}

.dclone-region:hover { border-color: #5a005a; }
.dclone-region.alert { border-color: #ff4444; box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); }
.dclone-region.walk {
    border-color: var(--d2r-purple-bright);
    box-shadow: 0 0 20px rgba(191, 127, 255, 0.5);
    animation: dclone-pulse 1s infinite;
}

@keyframes dclone-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(191, 127, 255, 0.5); }
    50% { box-shadow: 0 0 35px rgba(191, 127, 255, 0.8); }
}

.dclone-region-name {
    font-size: 0.7rem;
    color: var(--d2r-purple-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.dclone-progress {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dclone-progress.high { color: #ff4444; }
.dclone-progress.walk { color: var(--d2r-purple-bright); }
.dclone-progress.low { color: var(--text-muted); }

.dclone-stones {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 0.5rem;
}

.stone {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #444;
    transition: var(--transition);
}

.stone.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ffd700 100%);
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.stone.walk {
    background: linear-gradient(135deg, #bf7fff 0%, #800080 50%, #bf7fff 100%);
    border-color: var(--d2r-purple-bright);
    box-shadow: 0 0 10px rgba(191, 127, 255, 0.8);
    animation: stone-glow 0.5s infinite alternate;
}

@keyframes stone-glow {
    from { box-shadow: 0 0 10px rgba(191, 127, 255, 0.8); }
    to { box-shadow: 0 0 20px rgba(191, 127, 255, 1); }
}

.dclone-status-text {
    font-size: 0.65rem;
    margin-top: 0.4rem;
    color: var(--text-muted);
}

.dclone-status-text.alert { color: #ff4444; font-weight: 600; }
.dclone-status-text.walk { color: var(--d2r-purple-bright); font-weight: 700; animation: pulse-warning 0.5s infinite; }

.dclone-link {
    text-align: center;
    margin-top: 0.75rem;
}

.dclone-link a {
    color: var(--d2r-purple-bright);
    font-size: 0.75rem;
    text-decoration: none;
}

.dclone-link a:hover { text-decoration: underline; }

/* === AUDIO CONTROLS === */
.audio-controls {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    margin-top: 0.75rem;
}

.audio-controls button {
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    border: 1px solid var(--border-gold);
    color: var(--d2r-gold);
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: var(--transition);
}

.audio-controls button:hover { background: linear-gradient(180deg, #3a2a1a 0%, #2a2015 100%); }
.audio-controls button.active { border-color: var(--d2r-red-bright); color: var(--d2r-red-bright); }

/* Audio Modal */
.audio-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.audio-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--d2r-gold);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.audio-modal-content h2 {
    color: var(--d2r-gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.audio-modal-content p { color: #ccc; margin-bottom: 1.5rem; line-height: 1.6; }

.audio-modal-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }

.btn-audio-yes,
.btn-audio-no {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-audio-yes { background: var(--d2r-gold); color: #1a1a2e; font-weight: bold; }
.btn-audio-yes:hover { background: #e6c44d; transform: scale(1.05); }
.btn-audio-no { background: transparent; color: #999; border: 1px solid #666; }
.btn-audio-no:hover { border-color: #999; color: #ccc; }
.audio-modal-content small { color: #666; font-size: 0.85rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === LOADING SPINNER === */
.tz-loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 8, 6, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tz-loading.active { opacity: 1; pointer-events: all; }

.tz-loading-spinner {
    width: 60px; height: 60px;
    border: 4px solid var(--border-gold);
    border-top-color: var(--d2r-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.tz-loading-text {
    color: var(--d2r-gold);
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 0 0 10px var(--d2r-gold);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === INFO GRID / CARDS === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    background: linear-gradient(180deg, #1a1510 0%, #0f0c08 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--d2r-gold-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 1rem;
    color: var(--d2r-gold);
    margin-bottom: 0.5rem;
}

.info-card ul { margin: 0.5rem 0; padding-left: 1.25rem; font-size: 0.85rem; }
.info-card li { color: var(--text-muted); margin: 0.3rem 0; }

/* === FOOTER — MINIMALIST === */
.minimal-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 2;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: var(--d2r-gold-dark);
    margin: 0 auto 0.75rem;
    opacity: 0.5;
}

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-dim);
    font-size: 0.7rem;
    margin-top: 2rem;
    border-top: 1px solid #1a1410;
}

/* === RUNEWORDS PAGE — AGGRESSIVE MODERN === */
main section {
    margin-bottom: 2.5rem;
}

main section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--d2r-gold);
    letter-spacing: 2px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--d2r-gold), transparent) 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

main section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1rem;
    background: var(--d2r-gold);
    margin-right: 0.5rem;
    vertical-align: middle;
    border-radius: 2px;
}

main table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

main table thead th {
    background: #1a1410;
    color: var(--d2r-gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--d2r-gold-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

main table tbody tr {
    border-bottom: 1px solid #1a1410;
    transition: background 0.15s;
}

main table tbody tr:hover {
    background: rgba(139,115,85,0.06);
}

main table tbody td {
    padding: 0.5rem 0.75rem;
    color: #c8c0b0;
    vertical-align: middle;
}

main table tbody tr.checked {
    opacity: 0.45;
}

main table tbody tr.checked td {
    text-decoration: line-through;
    text-decoration-color: var(--d2r-gold);
}

main table tbody tr.warn-row {
    border-left: 3px solid var(--d2r-red-bright);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-box {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #0e0b08;
    border: 1px solid #3a2a1a;
    border-radius: 8px;
    color: #e8d5a3;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: var(--d2r-gold);
    box-shadow: 0 0 12px rgba(199,179,119,0.15);
}

.search-box::placeholder {
    color: #6b5e50;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    background: #0e0b08;
    border: 1px solid #3a2a1a;
    border-radius: 6px;
    color: #a89880;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--d2r-gold);
    color: var(--d2r-gold);
}

.filter-btn.active {
    background: var(--d2r-gold);
    color: #0a0806;
    border-color: var(--d2r-gold);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(199,179,119,0.25);
}

.reset-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid #8b3a3a;
    border-radius: 6px;
    color: #ff6666;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.reset-btn:hover {
    background: rgba(139,58,58,0.15);
    border-color: #ff6666;
}

.progress-container {
    background: #0e0b08;
    border: 1px solid #3a2a1a;
    border-radius: 8px;
    height: 28px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #e8d5a3);
    border-radius: 8px;
    transition: width 0.4s ease;
}

.progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
}

.stat-grid .stat {
    background: #0e0b08;
    border: 1px solid #1a1410;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.stat-grid .stat .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--d2r-gold);
    font-family: 'Cinzel', serif;
}

.stat-grid .stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.stat-grid .bar {
    height: 3px;
    background: #1a1410;
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

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

.alert-warning {
    background: rgba(199,162,39,0.08);
    border: 1px solid rgba(199,162,39,0.25);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    color: #c8b060;
}

.alert-warning strong {
    color: var(--d2r-gold);
}

/* Tier labels for missing runes */
.rune-tier-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.5rem;
    margin: 0.5rem 0 0.25rem;
    border-radius: 4px;
}

.rune-tier-label.tier-common { color: #8b8b8b; }
.rune-tier-label.tier-uncommon { color: #2ecc71; }
.rune-tier-label.tier-rare { color: #3498db; }
.rune-tier-label.tier-epic { color: #9b59b6; }
.rune-tier-label.tier-legendary { color: #e74c3c; }

.rune-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #1a1410;
    font-size: 0.82rem;
}

.rune-row .rune-num {
    font-size: 0.65rem;
    color: #6b5e50;
    min-width: 2rem;
}

.rune-row .rune-name {
    font-weight: 600;
    color: #c8c0b0;
    min-width: 3rem;
}

.rune-row .rune-count {
    color: var(--d2r-gold);
    font-weight: 600;
    min-width: 2rem;
    text-align: right;
}

.rune-row .rune-count.zero {
    color: #3a2a1a;
}

.missing-total {
    padding: 0.6rem 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid #3a2a1a;
    margin-top: 0.5rem;
}

.missing-total strong {
    color: var(--d2r-gold);
}

.ladder-only {
    color: #ff4444;
    font-size: 0.72rem;
    background: rgba(255,68,68,0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.patch3 {
    color: #2ecc71;
    font-size: 0.72rem;
}
.patch26 {
    color: #3498db;
    font-size: 0.72rem;
}
.patch24 {
    color: #9b59b6;
    font-size: 0.72rem;
}
.all-modes {
    color: #6b8b6b;
    font-size: 0.72rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6b5e50;
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #1a1410;
}

.table-wrap table {
    border: none;
}

/* Responsive */
@media (max-width: 600px) {
    main section h2 {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    main table thead th {
        font-size: 0.62rem;
        padding: 0.4rem 0.4rem;
    }
    
    main table tbody td {
        padding: 0.35rem 0.4rem;
        font-size: 0.72rem;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.minimal-footer p {
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.minimal-footer a {
    color: var(--d2r-gold-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.minimal-footer a:hover {
    color: var(--d2r-gold);
}

/* === COOKIE CONSENT === */
.cookie-consent {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, #1a1510 0%, #0a0806 100%);
    border-top: 1px solid var(--border-gold);
    padding: 0.8rem 1rem;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cookie-consent.hidden { display: none; }

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.cookie-btn {
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    border: 1px solid var(--border-gold);
    color: var(--d2r-gold);
    padding: 0.3rem 1rem;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
}

.cookie-btn:hover {
    border-color: var(--d2r-gold);
    color: var(--d2r-gold-bright);
    box-shadow: 0 0 10px var(--d2r-gold-glow);
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead th {
    background: linear-gradient(180deg, #2a2015 0%, #1a1510 100%);
    color: var(--d2r-gold);
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--d2r-gold-dark);
    position: sticky;
    top: 0;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

tbody tr:hover td { background: rgba(199, 179, 119, 0.05); }
tbody td { padding: 0.35rem 0.5rem; vertical-align: middle; }

/* === TAGS === */
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 2px;
}

.tag-new { background: var(--d2r-red-bright); color: #fff; }
.tag-popular { background: var(--d2r-gold); color: #1a1510; }

/* === ALERTS === */
.alert {
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-left: 3px solid;
    font-size: 0.8rem;
    line-height: 1.3;
}

.alert-warning {
    border-color: var(--d2r-red-bright);
    background: rgba(196, 30, 58, 0.1);
    color: #ff9999;
}

.alert-info {
    border-color: #2d5a8a;
    background: rgba(30, 58, 95, 0.2);
    color: #99ccff;
}

/* === CLASS CARDS (characters page) === */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.class-card {
    background: linear-gradient(180deg, #1a1510 0%, #0f0c08 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
}

.class-card:hover {
    border-color: var(--d2r-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.class-card h3 {
    font-size: 1.1rem;
    color: var(--d2r-gold-bright);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-card .emoji { font-size: 1.5rem; }
.class-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0; }
.class-card .builds { margin-top: 0.75rem; }
.class-card .builds a {
    display: block;
    color: var(--d2r-gold);
    text-decoration: none;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.class-card .builds a:hover { color: var(--d2r-gold-bright); }

/* === RUNEWORD SPECIFIC === */
.progress-container {
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    height: 24px;
    position: relative;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--d2r-gold-dark), var(--d2r-gold), var(--d2r-gold-bright));
    border-radius: var(--radius);
    transition: width 0.4s ease;
    width: 0%;
}

.progress-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--d2r-gold-bright);
    text-shadow: 0 0 6px #000;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: center;
}

.stat .value { font-size: 1.2rem; font-weight: 700; color: var(--d2r-gold); }
.stat .label { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition);
}

.search-box:focus { border-color: var(--d2r-gold); box-shadow: 0 0 8px var(--d2r-gold-glow); }
.search-box::placeholder { color: var(--text-muted); }

.filter-group { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.filter-btn {
    padding: 0.3rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--d2r-gold-dark); color: var(--text); }

.filter-btn.active {
    background: var(--d2r-gold-dark);
    color: var(--d2r-gold-bright);
    border-color: var(--d2r-gold);
    font-weight: 700;
}

.reset-btn {
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: 1px solid var(--d2r-red-bright);
    border-radius: 3px;
    color: var(--d2r-red-bright);
    cursor: pointer;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    margin-left: auto;
}

.reset-btn:hover { background: var(--d2r-red-bright); color: #fff; }

.table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0;
}

.patch3 { color: var(--d2r-red-bright); font-weight: 700; }
.patch26 { color: #c77dff; }
.patch24 { color: #7eb8ff; }
.ladder-only { color: #e6a832; }
.all-modes { color: var(--text-muted); }

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.rune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.3rem;
}

.rune-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.rune-row:hover { border-color: var(--d2r-gold-dark); }

.rune-name { font-weight: 700; }
.rune-num { color: var(--text-muted); font-size: 0.7rem; min-width: 20px; }
.rune-count { font-weight: 700; color: var(--d2r-gold); min-width: 24px; text-align: right; }
.rune-count.zero { color: var(--text-muted); opacity: 0.4; }

/* === TZ WIDGET UPGRADE === */
.tz-widget {
    position: relative;
    z-index: 2;
}

.tz-current {
    background: linear-gradient(180deg, #2a0000 0%, #1a0000 100%);
    border: 2px solid var(--d2r-red-bright);
    border-radius: var(--radius);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
    transition: border-color 0.5s, box-shadow 0.5s;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.tz-current .zone {
    font-size: 1.2rem;
    color: var(--d2r-gold-bright);
    margin: 0.2rem 0;
    font-weight: 600;
}

.tz-current .act-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.2rem;
    background: rgba(199,179,119,0.1);
    border: 1px solid rgba(199,179,119,0.2);
    color: var(--d2r-gold);
}

/* Immunity Pills */
.tz-bosspacks {
    margin-top: 8px;
    margin-left: 2px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.immunity-pills {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.immunity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.immunity-pill.fire  { background: rgba(255,136,68,0.15);  border: 1px solid rgba(255,136,68,0.3);  color: #ff8844; }
.immunity-pill.cold  { background: rgba(102,204,255,0.15); border: 1px solid rgba(102,204,255,0.3); color: #66ccff; }
.immunity-pill.light { background: rgba(255,255,102,0.15); border: 1px solid rgba(255,255,102,0.3); color: #ffff66; }
.immunity-pill.poison { background: rgba(136,255,68,0.15);  border: 1px solid rgba(136,255,68,0.3);  color: #88ff44; }
.immunity-pill.magic { background: rgba(170,136,255,0.15); border: 1px solid rgba(170,136,255,0.3); color: #aa88ff; }
.immunity-pill.phys  { background: rgba(200,200,200,0.1);  border: 1px solid rgba(200,200,200,0.2); color: #cccccc; }

/* SVG Circle Countdown */
.countdown-ring {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0.3rem auto 0.2rem;
    width: 80px;
    height: 80px;
}

.countdown-ring svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    transform: rotate(-90deg) scaleY(-1);
}

.countdown-ring .ring-bg {
    fill: none;
    stroke: rgba(199,179,119,0.1);
    stroke-width: 5;
}

.countdown-ring .ring-fg {
    fill: none;
    stroke: var(--d2r-red-bright);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear, stroke 0.3s;
    filter: drop-shadow(0 0 4px rgba(196,30,58,0.4));
}

.countdown-ring .ring-fg.warning-glow {
    stroke: #ff4444;
    filter: drop-shadow(0 0 12px rgba(255,68,68,0.8));
}

.countdown-ring .ring-fg.critical-glow {
    stroke: #ff0000;
    filter: drop-shadow(0 0 20px rgba(255,0,0,1));
}

.countdown-ring .countdown-text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--d2r-red-bright);
    text-shadow: 0 0 10px var(--d2r-red-glow);
    line-height: 80px;
}

.countdown-ring .countdown-text.pulse {
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* TZ Fade transition */
.tz-content {
    transition: opacity 0.3s ease;
}

.tz-content.fading {
    opacity: 0.3;
}

/* === RESPONSIVE === */

/* Small phones */
@media (max-width: 374px) {
    .hero-title { font-size: 1.1rem; letter-spacing: 1px; }
    .hero-title::before, .hero-title::after { display: none; }
    .hero-subtitle { font-size: 0.7rem; }
    .gold-line { width: 30px; }

    .hamburger { display: block; }
    nav { display: none; flex-direction: column; align-items: stretch; }
    nav.open { display: flex; }
    nav a { text-align: center; padding: 0.4rem; }

    main { padding: 0.5rem; }
    .widget, section { padding: 0.75rem; }
    .widget h2, section h2 { font-size: 1rem; }
    .tz-current .zone { font-size: 1.1rem; }
    .tz-countdown { font-size: 1.5rem; }
    .tz-next .zone { font-size: 0.9rem; }
    .dclone-mini h3 { font-size: 0.8rem; }
    .dclone-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-toggle { position: static; margin-top: 0.5rem; }
    .controls { flex-direction: column; }
    .search-box { min-width: 100%; }
    .reset-btn { margin-left: 0; }
}

/* Medium phones */
@media (min-width: 375px) and (max-width: 480px) {
    .hero-title { font-size: 1.3rem; }
    .hero-title::before, .hero-title::after { margin: 0 0.3rem; }

    .hamburger { display: block; }
    nav { display: none; flex-direction: column; align-items: stretch; }
    nav.open { display: flex; }

    .dclone-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: 1fr; }
    .lang-toggle { position: static; margin-top: 0.5rem; }
    .controls { flex-direction: column; }
    .search-box { min-width: 100%; }
}

/* Large phones */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-title { font-size: 1.5rem; }
    .dclone-grid { grid-template-columns: repeat(3, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .lang-toggle { position: absolute; top: 0.75rem; right: 1rem; }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .dclone-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-header { padding: 0.5rem 1rem; }
    .widget h2, section h2 { font-size: 1rem; }
    .tz-countdown { font-size: 1.5rem; }
    .widget, section { padding: 0.5rem; }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    nav a {
        padding: 0.4rem 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .audio-controls button { min-height: 44px; padding: 0.5rem 1rem; }
    .dclone-link a { padding: 0.5rem; display: inline-block; }
    .hamburger { min-height: 44px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tz-countdown.warning,
    .dclone-region.walk,
    .stone.walk,
    .dclone-status-text.walk { animation: none; }
    * { transition: none !important; }
}

/* Safe area insets */
@supports (padding: max(0px)) {
    .hero-header { padding-top: max(0.8rem, calc(env(safe-area-inset-top) + 0.5rem)); }
    main {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* === ITEMS PAGE STYLES === */
/* === SEARCH === */
.db-search{width:100%;padding:10px 14px;background:#141018;border:1px solid #3a2a4a;border-radius:6px;color:#e8e0f0;font-family:inherit;font-size:.9rem}
.db-search:focus{outline:none;border-color:#8b7355;box-shadow:0 0 8px rgba(139,115,85,.3)}
.db-search::placeholder{color:#6b5e50}

/* === TABS === */
.db-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.db-tab{padding:7px 16px;border:1px solid #3a2a4a;border-radius:6px;background:transparent;color:#a89880;font-family:inherit;font-size:.82rem;cursor:pointer;transition:.2s}
.db-tab:hover{border-color:#8b7355;color:#e8dcc8}
.db-tab.active{background:#8b0000;border-color:#c41e3a;color:#e8d5a3;font-weight:600}

/* === FILTERS === */
.db-filters{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 16px;align-items:center}
.db-filter{padding:5px 10px;border:1px solid #3a2a4a;border-radius:4px;background:transparent;color:#a89880;font-family:inherit;font-size:.72rem;cursor:pointer;transition:.2s}
.db-filter:hover{border-color:#8b7355;color:#e8dcc8}
.db-filter.active{border-color:#c41e3a;color:#ff6666;background:rgba(139,0,0,.15)}
.db-fv{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #3a2a4a;border-radius:4px;font-family:inherit;font-size:.72rem;color:#a89880}
.db-fv input{width:38px;padding:2px 4px;background:#0e0b08;border:1px solid #3a2a4a;border-radius:3px;color:#e8dcc8;font-size:.7rem;font-family:inherit;text-align:center}
.db-fv input:focus{outline:none;border-color:#8b7355}
.db-fv label{cursor:pointer}
.sep{width:1px;height:20px;background:#3a2a4a;margin:0 2px}
.db-count{font-size:.85rem;color:#a89880;margin-bottom:16px}

/* === VITABLO-STYLE: FLOATING CARDS === */
.items-list{max-width:900px}

/* === SET GROUP === */
.set-group{margin-bottom:40px}
.set-title{font-family:'Cinzel',serif;font-size:1.3rem;color:#3fb950;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #1a3a1a}
.set-title span{font-size:.8rem;color:#5a7a5a;font-weight:400;margin-left:8px}

/* === FLOATING SET ITEM CARD === */
.si-card{display:flex;gap:16px;padding:16px 20px;background:#0a0f08;border:1px solid #1a2a1a;border-radius:8px;margin-bottom:8px;transition:.25s;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.si-card:hover{border-color:#2a5a2a;box-shadow:0 4px 16px rgba(63,185,80,.1),0 2px 8px rgba(0,0,0,.4);transform:translateY(-1px)}
.si-card-img{width:72px;height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:2rem;background:#060a04;border:1px solid #1a2a1a;border-radius:6px;overflow:hidden}
.si-card-img img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
.si-card-body{flex:1;min-width:0}
.si-card-name{font-family:'Cinzel',serif;font-size:.95rem;font-weight:600;color:#3fb950;margin-bottom:1px}
.si-card-type{font-size:.72rem;color:#5a7a5a;margin-bottom:8px}

/* === FLOATING SET BONUS CARD === */
.set-bonus-card{padding:18px 22px;background:linear-gradient(135deg,#0f1a10,#0a1008);border:1px solid #1a3a1a;border-radius:8px;margin-top:12px;box-shadow:0 2px 12px rgba(0,0,0,.3)}
.set-bonus-card h3{font-family:'Cinzel',serif;font-size:.95rem;color:#3fb950;margin:0 0 10px}
.sb-tier{margin-bottom:8px;padding:8px 12px;background:rgba(0,0,0,.25);border-radius:4px;border-left:3px solid rgba(63,185,80,.5)}
.sb-tier-label{font-size:.68rem;color:#5a7a5a;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.sb-tier-stat{font-size:.78rem;color:#a8d0a8;padding:1px 0}

/* === SI CARD META LINE === */
.si-card-meta{font-size:.7rem;color:#5a7a5a;margin-bottom:6px}
.si-card-name{font-family:'Cinzel',serif;font-size:.95rem;font-weight:600;color:#3fb950;margin-bottom:1px}

/* === ITEM TYPE TAG === */
.type-tag{display:inline;font-size:.68rem;color:#6b6b6b;font-style:normal}

/* === UNIQUE ITEM CARD (floating) === */
.unique-card{display:flex;gap:16px;padding:16px 20px;background:#0e0b08;border:1px solid #2a2218;border-radius:8px;margin-bottom:8px;transition:.25s;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.unique-card:hover{border-color:#8b7355;box-shadow:0 4px 16px rgba(139,115,85,.12),0 2px 8px rgba(0,0,0,.4);transform:translateY(-1px)}
.unique-card-icon{width:72px;height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:2rem;background:#0a0806;border:1px solid #2a2218;border-radius:6px;overflow:hidden}
.unique-card-icon img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
.unique-card-body{flex:1;padding:0;min-width:0}
.unique-card-name{font-family:'Cinzel',serif;font-size:1rem;font-weight:700;color:#e8d5a3;margin-bottom:2px}
.unique-card-name-de{font-size:.75rem;color:#6b5e4f;font-style:italic;margin-bottom:6px}
.unique-card-sub{font-size:.72rem;color:#6b5e4f;margin-bottom:8px;display:flex;gap:8px;flex-wrap:wrap}

/* === STAT LINES (vitablo style) === */
.stat-line{font-size:.78rem;color:#e0dcd4;padding:1px 0;line-height:1.35;font-family:inherit}
.stat-line.base{color:#e0dcd4}
.stat-line.magic{color:#6eb5ff}
.stat-line.fire{color:#ff8844}
.stat-line.cold{color:#66ccff}
.stat-line.light{color:#ffff66}
.stat-line.pois{color:#88ff44}
.stat-line.skill{color:#aa88ff}
.stat-line.gold{color:#e8d5a3}
.stat-line.heal{color:#ff6666}
.stat-line.res{color:#aabbcc}
.stat-line.green{color:#3fb950}
.stat-line.gray{color:#6b5e50}
.stat-divider{border:none;border-top:1px solid #2a2420;margin:6px 0}

/* === PROPERTY TAGS === */
.prop-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}
.ptag{padding:2px 7px;border-radius:3px;font-size:.65rem;font-weight:600;letter-spacing:.3px}
.ptag-ll{color:#ff4444;background:rgba(255,68,68,.1);border:1px solid rgba(255,68,68,.3)}
.ptag-ml{color:#4488ff;background:rgba(68,136,255,.1);border:1px solid rgba(68,136,255,.3)}
.ptag-cb{color:#ff8800;background:rgba(255,136,0,.1);border:1px solid rgba(255,136,0,.3)}
.ptag-ds{color:#00ff88;background:rgba(0,255,136,.1);border:1px solid rgba(0,255,136,.3)}
.ptag-ow{color:#ff66ff;background:rgba(255,102,255,.1);border:1px solid rgba(255,102,255,.3)}
.ptag-ias{color:#ffff00;background:rgba(255,255,0,.08);border:1px solid rgba(255,255,0,.3)}
.ptag-sock{color:#88aaff;background:rgba(136,170,255,.08);border:1px solid rgba(136,170,255,.3)}

/* === BASE ITEMS TABLE === */
.base-table{width:100%;border-collapse:collapse;font-size:.82rem}
.base-table th{text-align:left;padding:8px 12px;color:#8b7355;border-bottom:1px solid #3a2a1a;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}
.base-table td{padding:8px 12px;color:#c8c0b0;border-bottom:1px solid #1a1410}
.base-table tr:hover td{background:rgba(139,115,85,.05)}
.base-table .cat-tag{display:inline-block;padding:1px 6px;border-radius:3px;font-size:.65rem;color:#a89880;border:1px solid #3a2a1a}

/* === RUNE LIST === */
.rune-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.rune-card{padding:10px 14px;background:#0e0b08;border:1px solid #3a2a1a;border-radius:6px;text-align:center}
.rune-card .rune-code{font-family:'Cinzel',serif;font-size:1rem;font-weight:700;color:#e8d5a3}
.rune-card .rune-name{font-size:.78rem;color:#a89880;margin-top:2px}

/* === MONSTER/SKILL CARDS === */
.list-card{padding:12px 16px;background:#0e0b08;border:1px solid #3a2a1a;border-radius:6px;margin-bottom:6px;transition:.2s}
.list-card:hover{border-color:#8b7355}
.list-card-name{font-family:'Cinzel',serif;font-size:.95rem;color:#e8d5a3}
.list-card-meta{font-size:.72rem;color:#6b5e4f;margin-top:2px}
.list-card-desc{font-size:.8rem;color:#a89880;margin-top:6px}

.db-loading{text-align:center;padding:60px;color:#6b5e4f}

@media(max-width:600px){.unique-card,.si-card{flex-direction:column;gap:10px}.unique-card-icon,.si-card-img{width:100%;height:56px;border-right:none}}

/* === IMAGE HOVER POPUP === */
.unique-card-icon,.si-card-img{position:relative;cursor:zoom-in}
.unique-card-icon .img-pop,.si-card-img .img-pop{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100000;max-width:480px;max-height:480px;border:2px solid #8b7355;border-radius:8px;background:#0a0806;padding:8px;box-shadow:0 0 60px rgba(0,0,0,.95),0 0 20px rgba(139,115,85,.2)}
.unique-card-icon .img-pop img,.si-card-img .img-pop img{width:100%;height:auto;display:block;border-radius:4px}
.unique-card-icon:hover .img-pop,.si-card-img:hover .img-pop{display:block}

/* === RUNEWORDS PAGE STYLES === */
        /* ===== RUNECATCHER STYLES ===== */
        .runecatcher-section {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 2px solid #c9a227;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .runecatcher-section h2 {
            color: #c9a227;
            border-bottom: 1px solid #c9a22740;
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .rune-stock-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .rune-stock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: #0d0d1a;
            border: 1px solid #333;
            border-radius: 6px;
            padding: 0.5rem 0.25rem;
            transition: all 0.2s;
        }
        
        .rune-stock-item:hover {
            border-color: #c9a227;
            transform: translateY(-2px);
        }
        
        .rune-stock-item.tier-common { border-left: 3px solid #8b8b8b; }
        .rune-stock-item.tier-uncommon { border-left: 3px solid #2ecc71; }
        .rune-stock-item.tier-rare { border-left: 3px solid #3498db; }
        .rune-stock-item.tier-epic { border-left: 3px solid #9b59b6; }
        .rune-stock-item.tier-legendary { border-left: 3px solid #e74c3c; }
        
        .rune-stock-item .rune-num {
            font-size: 0.6rem;
            color: #666;
            margin-bottom: 0.1rem;
        }
        
        .rune-stock-item .rune-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0.25rem;
        }
        
        .rune-stock-item.tier-common .rune-name { color: #b0b0b0; }
        .rune-stock-item.tier-uncommon .rune-name { color: #2ecc71; }
        .rune-stock-item.tier-rare .rune-name { color: #3498db; }
        .rune-stock-item.tier-epic .rune-name { color: #9b59b6; }
        .rune-stock-item.tier-legendary .rune-name { color: #e74c3c; }
        
        .rune-stock-item input {
            width: 50px;
            padding: 0.25rem;
            text-align: center;
            background: #1a1a2e;
            border: 1px solid #444;
            border-radius: 4px;
            color: #c9a227;
            font-size: 0.9rem;
            font-weight: 600;
        }
        
        .rune-stock-item input:focus {
            outline: none;
            border-color: #c9a227;
            box-shadow: 0 0 8px #c9a22740;
        }
        
        .runecatcher-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }
        
        .runecatcher-actions button {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
            font-weight: 600;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-calculate {
            background: linear-gradient(135deg, #c9a227, #8b6914);
            color: #1a1a2e;
        }
        
        .btn-calculate:hover {
            background: linear-gradient(135deg, #ddb82f, #a07a1a);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px #c9a22740;
        }
        
        .btn-export {
            background: linear-gradient(135deg, #2d5a8a, #1a3a5c);
            color: #fff;
        }
        
        .btn-export:hover {
            background: linear-gradient(135deg, #3d6a9a, #2a4a6c);
            transform: translateY(-2px);
        }
        
        .btn-reset-stock {
            background: linear-gradient(135deg, #8b3a3a, #5c1a1a);
            color: #fff;
        }
        
        .btn-reset-stock:hover {
            background: linear-gradient(135deg, #9b4a4a, #6c2a2a);
            transform: translateY(-2px);
        }
        
        .runecatcher-results {
            margin-top: 1rem;
        }
        
        .results-summary {
            background: #0d0d1a;
            border: 1px solid #c9a22740;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 1rem;
        }
        
        .results-summary h3 {
            color: #c9a227;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }
        
        .results-summary .stat-row {
            display: flex;
            justify-content: space-between;
            padding: 0.25rem 0;
            border-bottom: 1px solid #333;
        }
        
        .results-summary .stat-row:last-child {
            border-bottom: none;
        }
        
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            font-size: 0.85rem;
        }
        
        .results-table th {
            background: #2d2d4a;
            color: #c9a227;
            padding: 0.5rem;
            text-align: left;
            border-bottom: 2px solid #c9a227;
        }
        
        .results-table td {
            padding: 0.4rem 0.5rem;
            border-bottom: 1px solid #333;
        }
        
        .results-table tr.cat-weapon td:first-child::before { content: "⚔️ "; }
        .results-table tr.cat-armor td:first-child::before { content: "🛡️ "; }
        .results-table tr.cat-helm td:first-child::before { content: "⛑️ "; }
        .results-table tr.cat-shield td:first-child::before { content: "🔰 "; }
        
        .results-table .runes-cell {
            color: #3498db;
            font-family: monospace;
        }
        
        .remaining-runes {
            margin-top: 1rem;
            padding: 1rem;
            background: #0d0d1a;
            border-radius: 6px;
        }
        
        .remaining-runes h4 {
            color: #888;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .remaining-runes-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .remaining-rune {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            background: #1a1a2e;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .remaining-rune .name {
            font-weight: 600;
        }
        
        .remaining-rune.tier-common .name { color: #b0b0b0; }
        .remaining-rune.tier-uncommon .name { color: #2ecc71; }
        .remaining-rune.tier-rare .name { color: #3498db; }
        .remaining-rune.tier-epic .name { color: #9b59b6; }
        .remaining-rune.tier-legendary .name { color: #e74c3c; }
        
        .remaining-rune .count {
            color: #c9a227;
            font-weight: 600;
        }
        
        .no-results-msg {
            text-align: center;
            padding: 2rem;
            color: #888;
        }
        
        .category-divider {
            background: #2d2d4a;
            font-weight: 600;
            color: #c9a227;
        }
        
        .category-divider td {
            padding: 0.5rem;
            text-align: left;
        }
        
        @media (max-width: 600px) {
            .rune-stock-grid {
                grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            }
            
            .rune-stock-item input {
                width: 45px;
                font-size: 0.8rem;
            }
            
            .results-table {
                font-size: 0.75rem;
            }
            
            .results-table th, .results-table td {
                padding: 0.25rem;
            }
        }

/* === Legend Pills === */
.legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #c9a84c;
    white-space: nowrap;
}
.legend-icon { font-size: 0.85rem; }
.legend-all { border-color: #4caf50; color: #4caf50; }
.legend-ladder { border-color: #ff9800; color: #ff9800; }
.legend-p3 { border-color: #e040fb; color: #e040fb; }
.legend-p26 { border-color: #42a5f5; color: #42a5f5; }
.legend-p24 { border-color: #66bb6a; color: #66bb6a; }
.legend-warn { border-color: #ffd600; color: #ffd600; }
.legend-note {
    width: 100%;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    padding: 0.3rem 0 0 0.2rem;
    line-height: 1.4;
}

/* Legend - compact badge grid */
.legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.08);
}
.legend-pill.legend-all {
    background: rgba(16,185,129,0.12);
    color: #34d399;
    border-color: rgba(16,185,129,0.25);
}
.legend-pill.legend-ladder {
    background: rgba(234,179,8,0.12);
    color: #facc15;
    border-color: rgba(234,179,8,0.25);
}
.legend-pill.legend-p3 {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border-color: rgba(239,68,68,0.25);
}
.legend-pill.legend-p26 {
    background: rgba(167,139,250,0.12);
    color: #a78bfa;
    border-color: rgba(167,139,250,0.25);
}
.legend-pill.legend-p24 {
    background: rgba(96,165,250,0.12);
    color: #60a5fa;
    border-color: rgba(96,165,250,0.25);
}
.legend-pill.legend-warn {
    background: rgba(251,146,60,0.12);
    color: #fb923c;
    border-color: rgba(251,146,60,0.25);
}
.legend-icon {
    font-size: 0.8rem;
}
.legend-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    background: rgba(251,146,60,0.06);
    border-left: 3px solid rgba(251,146,60,0.3);
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

/* Controls - Filter & Search */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
}
.search-box {
    flex: 1;
    min-width: 220px;
    padding: 0.55rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 12px rgba(212,175,55,0.1);
}
.search-box::placeholder {
    color: rgba(255,255,255,0.3);
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.filter-btn {
    padding: 0.4rem 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.filter-btn.active {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.4);
    color: #d4af37;
}
.reset-btn {
    padding: 0.4rem 0.7rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 6px;
    color: #f87171;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}
.reset-btn:hover {
    background: rgba(239,68,68,0.15);
}

/* Main Table */
.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
thead th {
    position: sticky;
    top: 0;
    background: rgba(13,12,10,0.95);
    backdrop-filter: blur(8px);
    padding: 0.55rem 0.5rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    z-index: 5;
}
tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}
tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
tbody td {
    padding: 0.45rem 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}
tbody td:nth-child(3) { color: var(--text-primary); font-weight: 500; }
tbody td:nth-child(4) { color: var(--text-muted); }

/* Checked rows */
tr.checked td {
    text-decoration: line-through;
    opacity: 0.45;
}

/* Category divider rows */
tr.category-divider td {
    background: rgba(212,175,55,0.06);
    color: #d4af37;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

/* No results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Progress bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(212,175,55,0.6), rgba(212,175,55,0.9));
    border-radius: 14px;
    transition: width 0.5s ease;
    width: 0%;
}
.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Runencatcher section */
.runecatcher-section h2 { margin-bottom: 0.5rem; }

/* Socket filter - multi-select pills */
.socket-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.socket-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-right: 0.2rem;
}
.socket-btn {
    width: 30px;
    height: 30px;
    display: inline-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: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.socket-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.socket-btn.active {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.5);
    color: #a78bfa;
    box-shadow: 0 0 8px rgba(139,92,246,0.15);
}
