:root {
    /* Brand Accents (Parity with Zircon Launcher) */
    --color-accent: #47d2c9;
    --color-accent-rgb: 71 210 201;
    --color-accent-bright: #5adfd5;
    --color-accent-bright-rgb: 90 223 213;
    --color-accent-deep: #20b2aa;
    --color-accent-deep-rgb: 32 178 170;
    --color-accent-ink: #022623;
    --color-accent-ink-rgb: 2 38 35;
    --color-accent-glow: rgba(71, 210, 201, 0.35);
    --color-accent-glow-strong: rgba(71, 210, 201, 0.5);
    --color-accent-border: rgba(71, 210, 201, 0.45);
    --color-accent-focus: rgba(71, 210, 201, 0.25);

    /* Cyber-Obsidian Surfaces */
    --color-bg: #070b0f;
    --color-bg-rgb: 7 11 15;
    --color-sidebar: #0a0f14;
    --color-sidebar-rgb: 10 15 20;
    --color-card: #0e1622;
    --color-card-rgb: 14 22 34;
    --color-well: #070b10;
    --color-well-rgb: 7 11 16;
    --color-border: #263545;
    --color-border-rgb: 38 53 69;
    --color-btn-secondary: #1c2530;
    --color-btn-secondary-rgb: 28 37 48;

    /* Elevation & Metrics */
    --border-radius-btn: 0.5rem;
    --border-radius-card: 0.875rem;
    --border-radius-input: 0.5rem;
    --card-blur: 14px;
    --card-opacity: 0.85;
    --border-opacity: 0.55;
}

/* Base resets & Dark Obsidian canvas */
html,
body,
#app {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg) !important;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Universal Cyber-Obsidian Theme Remapping */
.bg-\[\#0b0f19\],
.bg-slate-950 {
    background-color: var(--color-bg) !important;
}

.bg-\[\#080c14\],
aside {
    background-color: var(--color-sidebar) !important;
}

header.bg-\[\#080c14\]\/90 {
    background-color: rgba(var(--color-sidebar-rgb), 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.border-slate-800,
.border-slate-800\/80,
.border-slate-800\/70,
.border-slate-700\/80,
.border-slate-700\/60,
.border-slate-700 {
    border-color: rgba(var(--color-border-rgb), var(--border-opacity)) !important;
}

/* Sleek custom scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 53, 69, 0.45) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(38, 53, 69, 0.45);
    border-radius: 9999px;
    transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* 2026 High-Tech Glassmorphism Surfaces */
/* 2026 High-Tech Glassmorphism Surfaces */
.z-glass-card,
.zircon-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), rgba(8, 16, 28, 0.68) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--border-radius-card) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.45) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.z-glass-card:hover,
.zircon-glass-card:hover {
    border-color: rgba(71, 210, 201, 0.45) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(71, 210, 201, 0.2) !important;
}

/* Brand Title & Typography in Sidebar */
.z-brand-logo {
    filter: drop-shadow(0 0 12px rgba(71, 210, 201, 0.4));
    transition: filter 0.3s ease;
}

.z-brand-logo:hover {
    filter: drop-shadow(0 0 18px rgba(71, 210, 201, 0.65));
}

.z-brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.25em;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.z-brand-subtitle-dot {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background-color: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
}

/* Glowing Selected Server / Active Card Backdrop */
.z-server-selected,
.zircon-server-selected {
    background: radial-gradient(circle at 50% 0%, rgba(71, 210, 201, 0.22) 0%, rgba(14, 22, 34, 0.96) 75%), rgba(14, 22, 34, 0.96) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 25px rgba(71, 210, 201, 0.35), inset 0 0 16px rgba(71, 210, 201, 0.15) !important;
    position: relative !important;
    z-index: 10 !important;
}

.z-glass-card:hover,
.zircon-glass-card:hover {
    position: relative;
    z-index: 10 !important;
}

.z-server-selected::before,
.zircon-server-selected::before {
    content: '' !important;
    position: absolute !important;
    left: 0px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3.5px !important;
    height: 60% !important;
    background: var(--color-accent) !important;
    border-radius: 9999px !important;
    box-shadow: 0 0 10px var(--color-accent), 0 0 4px var(--color-accent-bright) !important;
    z-index: 11 !important;
}

/* Active Navigation Glowing Indicator Pill */
.z-nav-pill-active {
    background: rgba(71, 210, 201, 0.12) !important;
    border: 1px solid rgba(71, 210, 201, 0.4) !important;
    color: #47d2c9 !important;
    box-shadow: 0 0 16px rgba(71, 210, 201, 0.25) !important;
    position: relative !important;
    font-weight: 700 !important;
}

.z-nav-pill-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}

/* Call-to-Action Buttons */
.zircon-cta-btn,
.z-btn-accent {
    background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent) 50%, var(--color-accent-deep) 100%) !important;
    color: var(--color-accent-ink) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 18px var(--color-accent-glow) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--border-radius-btn) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zircon-cta-btn:hover:not(:disabled),
.z-btn-accent:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent) 50%, var(--color-accent-deep) 100%) !important;
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 24px var(--color-accent-glow-strong) !important;
    transform: translateY(-1px) !important;
}

.zircon-cta-btn:active:not(:disabled),
.z-btn-accent:active:not(:disabled) {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 2px 10px var(--color-accent-glow) !important;
}

.zircon-cta-btn:disabled,
.z-btn-accent:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* World Studio high-contrast dark mode button overrides */
.world-tab-view .zircon-cta-btn,
.world-studio-grid .zircon-cta-btn,
.world-studio-preview-col .zircon-cta-btn,
.slippy-map-container .zircon-cta-btn {
    background: linear-gradient(135deg, #0891b2 0%, #0d9488 50%, #059669 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.world-tab-view .zircon-cta-btn:hover:not(:disabled),
.world-studio-grid .zircon-cta-btn:hover:not(:disabled),
.world-studio-preview-col .zircon-cta-btn:hover:not(:disabled),
.slippy-map-container .zircon-cta-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 50%, #10b981 100%) !important;
    color: #ffffff !important;
}

.z-btn-secondary,
.z-btn-ghost {
    background: rgba(var(--color-btn-secondary-rgb), 0.75) !important;
    color: #c9d1d9 !important;
    border: 1px solid rgba(var(--color-border-rgb), 0.6) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: var(--border-radius-btn) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.z-btn-secondary:hover:not(:disabled),
.z-btn-ghost:hover:not(:disabled) {
    background: rgba(var(--color-btn-secondary-rgb), 0.95) !important;
    border-color: var(--color-accent-border) !important;
    color: var(--color-accent) !important;
    box-shadow: 0 0 12px var(--color-accent-glow) !important;
}

.z-btn-danger {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-radius: var(--border-radius-btn) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.z-btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.32) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.3) !important;
}

/* Inputs & Form Controls - Card Slate Blue Tone on Dark Cards */
.z-input,
.z-search-input,
select,
input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
textarea {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(86, 118, 153, 0.45) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-input);
    color: #f1f5f9 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.z-input::placeholder,
.z-search-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #7e8d9f;
}

.z-input:hover,
.z-search-input:hover,
select:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
textarea:hover {
    border-color: rgba(71, 210, 201, 0.45) !important;
    background: rgba(20, 30, 52, 0.95) !important;
}

.z-input:focus,
.z-search-input:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input:focus,
textarea:focus {
    outline: none !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 2px var(--color-accent-focus), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* Capsule Toggle Switch (.z-toggle) */
.z-toggle {
    position: relative;
    display: inline-flex;
    height: 1.125rem;
    width: 2rem;
    flex-shrink: 0;
    align-items: center;
    border-radius: 9999px;
    background: rgba(33, 44, 56, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.z-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-accent-glow-strong);
}

.z-toggle-on {
    background: var(--color-accent) !important;
    border-color: var(--color-accent-bright) !important;
    box-shadow: 0 0 10px var(--color-accent-glow) !important;
}

.z-toggle-thumb {
    display: inline-block;
    height: 0.75rem;
    width: 0.75rem;
    transform: translateX(2px);
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s;
}

.z-toggle-on .z-toggle-thumb {
    transform: translateX(1rem) !important;
    background-color: var(--color-accent-ink) !important;
}

/* Segmented Pill Selector (.z-segmented-track) */
.z-segmented-track {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: var(--border-radius-btn);
    background-color: var(--color-well);
    border: 1px solid rgba(var(--color-border-rgb), 0.7);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    gap: 3px;
}

.z-segmented-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 11px;
    line-height: 16px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    background-color: transparent;
    border: none;
}

.z-segmented-pill:hover:not(.active) {
    color: #f1f5f9;
    background-color: rgba(var(--color-border-rgb), 0.5);
}

.z-segmented-pill.active {
    background-color: var(--color-accent) !important;
    color: var(--color-accent-ink) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px var(--color-accent-glow) !important;
    outline: 1px solid var(--color-accent-bright) !important;
}

/* Drag-and-Drop Zones */
.zircon-drop-zone {
    background: radial-gradient(circle at 50% 30%, rgba(var(--color-accent-rgb), 0.06), rgba(var(--color-card-rgb), 0.85)) !important;
    border: 2px dashed var(--color-accent-border) !important;
    border-radius: var(--border-radius-card) !important;
    transition: all 0.2s ease-in-out !important;
}

.zircon-drop-zone:hover,
.zircon-drop-zone.dragging {
    background: radial-gradient(circle at 50% 30%, rgba(var(--color-accent-rgb), 0.14), rgba(var(--color-card-rgb), 0.95)) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 25px var(--color-accent-glow) !important;
}

/* Shimmer Progress Bars */
.zircon-progress-bar {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright), var(--color-accent)) !important;
    background-size: 200% 100% !important;
    animation: zircon-shimmer 2s infinite linear !important;
    box-shadow: 0 0 12px var(--color-accent-glow-strong) !important;
}

@keyframes zircon-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Status Ring Indicators (Online, Booting, Offline) */
.z-status-ring-online {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.z-status-ring-online::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #4ade80;
    opacity: 0.75;
    animation: z-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.z-status-ring-online::after {
    content: '';
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #22c55e;
    box-shadow: 0 0 8px #4ade80;
}

.z-status-ring-booting {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

.z-status-ring-booting::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #fbbf24;
    opacity: 0.6;
    animation: z-pulse 1.5s ease-in-out infinite;
}

.z-status-ring-booting::after {
    content: '';
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #f59e0b;
    box-shadow: 0 0 8px #fbbf24;
}

.z-status-ring-offline {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: #64748b;
    display: inline-block;
}

@keyframes z-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes z-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

/* 16:9 Hero Wallpaper Banners */
.z-hero-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.z-glass-card:hover .z-hero-banner {
    opacity: 0.5;
    transform: scale(1.03);
}

.z-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 11, 15, 0.95) 0%, rgba(7, 11, 15, 0.7) 50%, rgba(7, 11, 15, 0.88) 100%);
    pointer-events: none;
}

/* Direct Connect 1-Click Copy IP Button */
.z-copy-ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    padding: 0.25rem 0.625rem;
    border-radius: var(--border-radius-btn);
    background: rgba(var(--color-card-rgb), 0.8);
    border: 1px solid rgba(var(--color-border-rgb), 0.7);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.z-copy-ip-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-bright);
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.z-copy-ip-btn.copied {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #34d399 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.4) !important;
}

/* Blended Sidebar & Top Bar Boundaries (Smooth Depth Elevation) */
.z-sidebar {
    background-color: #080c14;
    border-right: 1px solid rgba(255, 255, 255, 0.035) !important;
    box-shadow: 4px 0 24px -2px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 20;
}

.z-top-header {
    background-color: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.035) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 15;
}

/* Signature Zircon Launcher Ambient Corner Flare - 2x Size Radial Glow */
.z-ambient-corner-flare {
    position: absolute;
    top: -16rem;
    left: -16rem;
    width: 48rem;
    height: 48rem;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.18;
    background: radial-gradient(circle, var(--color-accent) 0%, rgba(71, 210, 201, 0.4) 35%, rgba(71, 210, 201, 0) 70%);
    z-index: 0;
}

/* Unified Cyber-Obsidian Search Box & Item Cards */
.z-search-input,
input.bg-\[\#1e293b\],
select.bg-\[\#1e293b\],
button.bg-\[\#1e293b\],
.bg-\[\#1e293b\] {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(86, 118, 153, 0.45) !important;
    color: #f1f5f9 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.z-search-input::placeholder,
input.bg-\[\#1e293b\]::placeholder {
    color: #64748b !important;
}

.z-search-input:focus,
input.bg-\[\#1e293b\]:focus,
select.bg-\[\#1e293b\]:focus,
button.bg-\[\#1e293b\]:focus {
    background-color: rgba(15, 23, 42, 0.98) !important;
    border-color: var(--color-accent) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 16px -2px rgba(71, 210, 201, 0.3) !important;
}

.z-item-card,
.z-mod-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%), rgba(8, 16, 28, 0.65) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.z-item-card:hover,
.z-mod-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%), rgba(12, 22, 38, 0.85) !important;
    border-color: rgba(71, 210, 201, 0.5) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 6px 22px -2px rgba(0, 0, 0, 0.6), 0 0 18px -2px rgba(71, 210, 201, 0.25) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Circular SVG Donut Gauges */
.z-gauge-circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.z-gauge-bg {
    stroke: rgba(38, 53, 69, 0.5);
}

/* Cyberpunk Console Terminal */
.z-terminal-box {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(var(--color-border-rgb), 0.7) !important;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.log-time {
    color: #64748b;
}

.log-info {
    color: #38bdf8;
}

.log-warn {
    color: #fbbf24;
}

.log-error {
    color: #f87171;
    font-weight: 600;
}

.log-cmd {
    color: #34d399;
}

.log-chat {
    color: #a7f3d0;
}

/* Console Quick-Action Chips */
.z-console-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(var(--color-btn-secondary-rgb), 0.8);
    border: 1px solid rgba(var(--color-border-rgb), 0.7);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.z-console-chip:hover {
    background: rgba(71, 210, 201, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent-bright);
    box-shadow: 0 0 10px var(--color-accent-glow);
    transform: translateY(-1px);
}

.z-console-chip:active {
    transform: translateY(1px);
}

/* Form checkboxes */
.zircon-check,
input[type="checkbox"].zircon-check,
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: transparent;
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.zircon-check:hover,
input[type="checkbox"]:hover {
    border-color: var(--color-accent-border);
}

.zircon-check:checked,
input[type="checkbox"]:checked {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 8px var(--color-accent-glow) !important;
}

.zircon-check:checked::after,
input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--color-accent-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Bulk Selection Toolbars & Badges */
.mods-bulk-toolbar,
.z-bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(8, 16, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(71, 210, 201, 0.25);
    border-radius: 0.875rem;
    padding: 0.5rem 0.875rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55), 0 0 16px rgba(71, 210, 201, 0.08);
    transition: all 0.2s ease;
}

.mods-bulk-toolbar > span:first-child,
.z-bulk-toolbar > span:first-child,
.z-bulk-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #47d2c9 !important;
    background: rgba(71, 210, 201, 0.12);
    border: 1px solid rgba(71, 210, 201, 0.3);
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    letter-spacing: 0.025em;
    box-shadow: 0 0 10px rgba(71, 210, 201, 0.15);
}

.z-bulk-counter-compact {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    color: #47d2c9 !important;
    background: rgba(71, 210, 201, 0.12) !important;
    border: 1px solid rgba(71, 210, 201, 0.3) !important;
    border-radius: 9999px !important;
    padding: 0.15rem 0.5rem !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 0 8px rgba(71, 210, 201, 0.15) !important;
    line-height: 1.2 !important;
}

.mods-bulk-toolbar > span:first-child::before,
.z-bulk-toolbar > span:first-child::before,
.z-bulk-counter::before,
.z-bulk-counter-compact::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 9999px;
    background-color: #47d2c9;
    box-shadow: 0 0 6px #47d2c9;
}

.z-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mods-bulk-toolbar button,
.z-bulk-toolbar button,
.z-bulk-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.22rem 0.6rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    outline: none !important;
    line-height: 1 !important;
}

.z-bulk-btn-sm {
    font-size: 0.6875rem !important;
    padding: 0.2rem 0.52rem !important;
    border-radius: 0.375rem !important;
}

.mods-bulk-toolbar button + button,
.z-bulk-toolbar button + button {
    margin-left: 0.35rem !important;
}

.mods-bulk-toolbar button:active,
.z-bulk-toolbar button:active,
.z-bulk-btn:active {
    transform: scale(0.96) !important;
}

.mods-bulk-enable,
.z-bulk-btn-enable {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.mods-bulk-enable:hover,
.z-bulk-btn-enable:hover {
    background: rgba(16, 185, 129, 0.32) !important;
    border-color: #34d399 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.4) !important;
}

.mods-bulk-disable,
.z-bulk-btn-disable {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #cbd5e1 !important;
    border-color: rgba(71, 85, 105, 0.7) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.mods-bulk-disable:hover,
.z-bulk-btn-disable:hover {
    background: rgba(51, 65, 85, 1) !important;
    border-color: #94a3b8 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.25) !important;
}

.mods-bulk-delete,
.z-bulk-btn-delete {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.mods-bulk-delete:hover,
.z-bulk-btn-delete:hover {
    background: rgba(239, 68, 68, 0.32) !important;
    border-color: #ef4444 !important;
    color: #fecaca !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}

.mod-row-disabled {
    opacity: 0.5;
}

/* 3-Way Mod Side Selector Segmented Pills */
.mod-side-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 11px;
    line-height: 16px;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    background-color: transparent;
    border: none;
}

.mod-side-pill:hover {
    color: #f1f5f9;
    background-color: rgba(51, 65, 85, 0.6);
}

.mod-side-pill.active-both,
.mod-side-pill.active-client,
.mod-side-pill.active-server {
    background-color: var(--color-accent) !important;
    color: var(--color-accent-ink) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px var(--color-accent-glow) !important;
    outline: 1px solid var(--color-accent-bright);
}

/* Charts & Performance Styling */
.chart-glow-cyan {
    filter: drop-shadow(0 0 6px rgba(71, 210, 201, 0.45));
}
.chart-glow-sky {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}
.chart-glow-emerald {
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
}
.chart-glow-amber {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}
.chart-glow-rose {
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.5));
}
.tps-ring-circle {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}
.chart-svg-interactive {
    cursor: crosshair;
}

/* Docked Glass Terminal for Instance Setup & Migration Wizard */
.zircon-instance-docked-log {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    padding: 0.875rem 1.5rem 1rem 1.5rem;
    border-top: 1px solid rgba(var(--color-border-rgb), 0.6);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    background: rgba(4, 8, 16, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 -8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
    .zircon-instance-docked-log {
        margin-left: -1.75rem;
        margin-right: -1.75rem;
        margin-bottom: -1.75rem;
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

#import-log-container {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--color-border-rgb), 0.45);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Performance Screen Visual Polish (Unselected States - Glassmorphic) */
.z-stat-pill-idle {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), rgba(8, 16, 28, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.z-stat-pill-idle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%), rgba(14, 26, 44, 0.85) !important;
    border-color: rgba(71, 210, 201, 0.45) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 0 14px rgba(71, 210, 201, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.z-chart-well,
.z-stat-well {
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.88) 0%, rgba(3, 7, 14, 0.92) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* Mod Result & Installed Mod Cards - Glassmorphic Dark Background, Glow & Stacking Fix */
.bg-slate-900\/60 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0) 100%), rgba(8, 16, 28, 0.65) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease !important;
}

.bg-slate-900\/60:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%), rgba(12, 22, 38, 0.85) !important;
    border-color: rgba(71, 210, 201, 0.5) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 6px 22px -2px rgba(0, 0, 0, 0.6), 0 0 18px -2px rgba(71, 210, 201, 0.25) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Global Select & Option Dark Theme Protection - Unified with Text Inputs */
select {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(86, 118, 153, 0.45) !important;
    color: #f1f5f9 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

select:hover {
    border-color: rgba(71, 210, 201, 0.45) !important;
    background-color: rgba(20, 30, 52, 0.95) !important;
}

select:focus {
    outline: none !important;
    border-color: var(--color-accent) !important;
    background-color: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 0 0 2px var(--color-accent-focus), inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

option {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    padding: 8px 12px;
}

/* ==========================================================================
   File Manager & Editor Modernization
   ========================================================================== */

.z-file-table-header {
    background: linear-gradient(180deg, rgba(8, 14, 24, 0.96) 0%, rgba(5, 10, 18, 0.98) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.z-file-row {
    transition: background-color 0.15s ease, border-color 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    position: relative;
}

.z-file-row:hover {
    background: linear-gradient(90deg, rgba(71, 210, 201, 0.06) 0%, rgba(14, 24, 40, 0.5) 100%) !important;
}

.z-file-row:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--color-accent);
    border-radius: 9999px;
    box-shadow: 0 0 8px var(--color-accent-glow);
}

/* Drag-and-drop file upload overlay */
.z-file-dropzone-active {
    position: relative;
}

.z-file-dropzone-active::after {
    content: 'Drop files to upload here';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: var(--color-accent);
    position: absolute;
    inset: 0.35rem;
    border: 2px dashed var(--color-accent);
    background: rgba(8, 20, 32, 0.88);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-card);
    pointer-events: none;
    z-index: 40;
    box-shadow: inset 0 0 24px rgba(71, 210, 201, 0.2), 0 0 20px rgba(71, 210, 201, 0.25);
}

/* Editor Container & Line Numbers Gutter */
.z-editor-container {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
    background: #06090e;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.z-editor-gutter {
    width: 3.25rem;
    background: rgba(3, 7, 12, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: right;
    padding: 1rem 0.6rem 1rem 0.25rem;
    user-select: none;
    overflow: hidden;
    white-space: pre-wrap;
}

.z-editor-textarea {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #e2e8f0 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.75rem !important;
    line-height: 1.5rem !important;
    padding: 1rem !important;
    outline: none !important;
    resize: none !important;
    white-space: pre !important;
    overflow: auto !important;
    tab-size: 2;
}

.z-editor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(71, 210, 201, 0.12);
    border: 1px solid rgba(71, 210, 201, 0.3);
    color: #47d2c9;
}

/* ==========================================================================
   ZIRCON BUILT-IN ALERT SYSTEM (Zirky-Inspired Glassmorphic Modal Card)
   ========================================================================== */

.z-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 7, 13, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: z-alert-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.z-alert-backdrop.closing {
    animation: z-alert-fade-out 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.z-alert-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: radial-gradient(135% 135% at 50% 0%, #111b2b 0%, #080d16 100%);
    border: 1px solid rgba(71, 210, 201, 0.35);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 -4px 30px rgba(71, 210, 201, 0.28), 0 0 35px rgba(71, 210, 201, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.125rem;
    overflow: hidden;
    animation: z-alert-pop-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.z-alert-backdrop.closing .z-alert-card {
    animation: z-alert-pop-out 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Top Radial Ambient Glow (feathered from y=12% with top shadow to eliminate cutoff) */
.z-alert-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: radial-gradient(ellipse 75% 65% at 50% 12%, rgba(71, 210, 201, 0.22) 0%, transparent 80%);
    pointer-events: none;
}

/* Error State */
.z-alert-card.state-error {
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 -4px 30px rgba(244, 63, 94, 0.35), 0 0 35px rgba(244, 63, 94, 0.22), inset 0 1px 1px rgba(244, 63, 94, 0.3);
}
.z-alert-card.state-error .z-alert-glow {
    background: radial-gradient(ellipse 75% 65% at 50% 12%, rgba(244, 63, 94, 0.28) 0%, transparent 80%);
}

/* Success State */
.z-alert-card.state-success {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 -4px 30px rgba(16, 185, 129, 0.35), 0 0 35px rgba(16, 185, 129, 0.22), inset 0 1px 1px rgba(16, 185, 129, 0.3);
}
.z-alert-card.state-success .z-alert-glow {
    background: radial-gradient(ellipse 75% 65% at 50% 12%, rgba(16, 185, 129, 0.28) 0%, transparent 80%);
}

.z-alert-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.z-alert-icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(71, 210, 201, 0.12);
    border: 1px solid rgba(71, 210, 201, 0.35);
    color: #47d2c9;
    box-shadow: 0 0 20px rgba(71, 210, 201, 0.15);
}

.z-alert-card.state-error .z-alert-icon-wrap {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.z-alert-card.state-success .z-alert-icon-wrap {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.z-alert-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.z-alert-subtitle {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.z-alert-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.z-alert-body {
    width: 100%;
    padding: 0.125rem 0.5rem;
    position: relative;
    z-index: 1;
}

.z-alert-message {
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
}

.z-alert-footer {
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.z-alert-btn {
    width: 100%;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent-bright, #5adfd5) 0%, var(--color-accent, #47d2c9) 50%, var(--color-accent-deep, #20b2aa) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-accent-ink, #022623);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--color-accent-glow, rgba(71, 210, 201, 0.35));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.z-alert-btn:hover {
    background: linear-gradient(135deg, var(--color-accent-bright, #5adfd5) 0%, var(--color-accent, #47d2c9) 50%, var(--color-accent-deep, #20b2aa) 100%);
    filter: brightness(1.1);
    box-shadow: 0 6px 24px var(--color-accent-glow-strong, rgba(71, 210, 201, 0.55));
    transform: translateY(-1px);
}

.z-alert-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px var(--color-accent-glow, rgba(71, 210, 201, 0.35));
}

@keyframes z-alert-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes z-alert-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes z-alert-pop-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes z-alert-pop-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
}

/* Multi-line truncation for modpack discovery */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Interactive World Seed Map Viewport */
.world-map-viewport {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 480px;
    border-radius: 1.25rem;
    background: #090e17;
    border: 1.5px solid rgba(71, 210, 201, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.world-map-viewport.is-dragging {
    cursor: grabbing;
}

.world-map-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(71, 210, 201, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(71, 210, 201, 0.08) 1px, transparent 1px);
    z-index: 5;
}

/* -------------------------------------------------------------------------
 * World Map Studio 2026 Slippy Canvas Engine & Dual Column Styles
 * ------------------------------------------------------------------------- */
.slippy-map-container {
    position: relative;
    width: 100%;
    height: clamp(580px, 75vh, 860px);
    background: #080d14;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.4);
}

.slippy-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.slippy-canvas:active {
    cursor: grabbing;
}

/* Floating Google Maps-Style HUD Controls */
.slippy-hud-top-left {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.slippy-hud-top-center {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 15;
    pointer-events: auto;
}

.world-studio-topbar {
    position: relative;
    width: 100%;
    background: rgba(10, 16, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.world-studio-topbar .topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.world-studio-topbar .topbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.world-studio-topbar .topbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}


.slippy-toolbar {
    background: rgba(12, 18, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.slippy-tool-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.slippy-tool-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.slippy-tool-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    color: #22d3ee;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.slippy-tool-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 2px;
}

.slippy-hud-badge {
    background: rgba(12, 18, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.slippy-hud-bottom-right {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.slippy-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 18, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.6rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.slippy-btn:hover {
    background: rgba(22, 33, 49, 0.95);
    border-color: rgba(71, 210, 201, 0.5);
    color: #47d2c9;
    transform: translateY(-1px);
}

.slippy-btn:active {
    transform: translateY(1px);
}

.slippy-btn.active {
    background: rgba(71, 210, 201, 0.2);
    border-color: #47d2c9;
    color: #47d2c9;
    box-shadow: 0 0 12px rgba(71, 210, 201, 0.3);
}

/* Mod Card List in Left Column */
.mod-list-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.mod-item-card {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-item-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Mod Search Input & Magnifying Glass Icon inside World Studio */
.preview-search-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.preview-search-wrap input {
    width: 100% !important;
    padding-left: 2.25rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
}

.preview-search-wrap svg {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* World Studio Full-Width Layout */
.world-studio-container {
    width: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
}
