/* ─── Shared Nav Bar Styles ─── */
.nav-left-group {
  position: fixed; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 8px;
  z-index: 1000;
  background: rgba(22,22,26,0.72);
  backdrop-filter: blur(36px) saturate(1.3);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  border-radius: 12px;
  padding: 3px;
  max-width: calc(100vw - 180px);
}
.nav-right-group {
  position: fixed; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 2px;
  z-index: 1000;
  background: rgba(22,22,26,0.72);
  backdrop-filter: blur(36px) saturate(1.3);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  border-radius: 12px;
  padding: 3px;
}
.nav-btn {
  display: flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 10px;
  background: transparent; border: none;
  border-radius: 9px;
  color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 12px; font-weight: 500;
  font-family: inherit; letter-spacing: -0.15px;
  white-space: nowrap; position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease;
}
.nav-btn:hover { transform: translateY(-1.5px); color: #fff; }
.nav-btn:active { transform: scale(0.92); transition-duration: 0.1s; }
.nav-btn svg {
  display: block; flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.65;
}
.nav-btn:hover svg { opacity: 1; transform: scale(1.15); filter: brightness(1.5) drop-shadow(0 0 8px rgba(255,255,255,0.1)); }
.nav-btn span { display: flex; align-items: center; line-height: 1; }
.nav-btn .chevron { opacity: 0.15; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease; }
.nav-btn:hover .chevron { opacity: 0.5; }

.brand-wrapper { position: relative; display: flex; align-items: center; }
.brand-wrapper:hover .nav-btn.brand .chevron { transform: rotate(180deg); opacity: 0.6; }
.nav-btn.brand { font-weight: 600; font-size: 13px; color: #fff; padding: 0 8px 0 6px; }

.brand-dropdown {
  position: absolute; left: 0; top: calc(100% + 10px);
  min-width: 260px; max-width: 300px;
  background: rgba(16,16,20,0.96);
  backdrop-filter: blur(48px) saturate(1.4);
  -webkit-backdrop-filter: blur(48px) saturate(1.4);
  border-radius: 16px; padding: 8px; z-index: 9999;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.25s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0s 0.25s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 0.5px rgba(255,255,255,0.03);
}
.brand-wrapper:hover .brand-dropdown, .brand-dropdown:hover {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), visibility 0s;
}

.sub-tool-wrapper { position: relative; display: flex; align-items: center; }
.nav-btn.subtool { color: rgba(255,255,255,0.3); font-size: 12px; cursor: default; }
.nav-btn.subtool:hover { color: #fff; }

.sub-tool-dropdown {
  position: absolute; left: 0; top: calc(100% + 10px);
  min-width: 280px; max-width: 320px;
  background: rgba(16,16,20,0.96);
  backdrop-filter: blur(48px) saturate(1.4);
  -webkit-backdrop-filter: blur(48px) saturate(1.4);
  border-radius: 16px; padding: 8px; z-index: 9999;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.25s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0s 0.25s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 0.5px rgba(255,255,255,0.03);
}
.sub-tool-wrapper:hover .sub-tool-dropdown, .sub-tool-dropdown:hover {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), visibility 0s;
}
.sub-tool-cat { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.22); text-transform: uppercase; letter-spacing: 0.7px; padding: 12px 12px 6px; }
.sub-tool-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer; border-radius: 10px; position: relative; user-select: none; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.sub-tool-item:hover { transform: translateX(5px); }
.sub-tool-item:active { transform: scale(0.97); }
.sub-tool-item > * { position: relative; z-index: 1; }
.sub-tool-item-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; opacity: 0.7; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease, box-shadow 0.35s ease; box-shadow: 0 0 0 0 rgba(255,255,255,0); }
.sub-tool-item:hover .sub-tool-item-icon { opacity: 1; transform: scale(1.15); box-shadow: 0 0 30px rgba(255,255,255,0.1); }
.sub-tool-item-body { flex: 1; min-width: 0; }
.sub-tool-item-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 6px; transition: color 0.25s ease; }
.sub-tool-item:hover .sub-tool-item-name { color: #fff; }
.sub-tool-item-desc { font-size: 10px; color: rgba(255,255,255,0.18); margin-top: 2px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.25s ease; }
.sub-tool-item:hover .sub-tool-item-desc { color: rgba(255,255,255,0.5); }
.sub-tool-item .check { margin-left: auto; opacity: 0; color: #60A5FA; flex-shrink: 0; margin-top: 5px; transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); transform: translateX(-4px); }
.sub-tool-item:hover .check { opacity: 0.3; transform: translateX(0); }
.sub-tool-item.active .check { opacity: 1; transform: translateX(0); }
.sub-tool-item.active .sub-tool-item-name { color: #fff; }
.sub-tool-item.active .sub-tool-item-desc { color: rgba(255,255,255,0.55); }
.sub-tool-item.active::after { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2.5px; height: 18px; border-radius: 3px; background: #60A5FA; opacity: 0.7; }

.nav-breadcrumb { display: flex; align-items: center; gap: 2px; font-size: 11px; line-height: 1; color: rgba(255,255,255,0.28); padding: 0 10px 0 4px; height: 34px; flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-breadcrumb a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); cursor: pointer; display: inline-block; }
.nav-breadcrumb a:hover { color: #fff; transform: scale(1.05); }
.nav-breadcrumb .cur { color: rgba(255,255,255,0.45); font-weight: 500; }

.nav-btn.icon { width: 34px; padding: 0; justify-content: center; }

@media (max-width: 768px) {
  .nav-left-group { top: 10px; left: 10px; max-width: calc(100vw - 120px); }
  .nav-right-group { top: 10px; right: 10px; }
  .nav-btn { height: 30px; padding: 0 8px; font-size: 11px; }
  .nav-btn.icon { width: 30px; }
  .nav-breadcrumb { font-size: 10px; height: 30px; padding: 0 6px 0 2px; }
  .brand-dropdown { min-width: 220px; }
  .sub-tool-dropdown { min-width: 240px; }
}
@media (max-width: 480px) {
  .nav-left-group { max-width: calc(100vw - 100px); }
  .nav-btn { height: 28px; padding: 0 6px; font-size: 10px; }
  .nav-btn.icon { width: 28px; }
  .nav-breadcrumb { font-size: 9px; height: 28px; display: none; }
  .nav-right-group { gap: 0; }
}

/* Settings Panel */
.settings-panel {
    position: fixed; top: 0; right: 0; width: 340px; height: 100%;
    background: #1a1a1a;
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: none; z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.settings-panel.open { transform: translateX(0); }
.settings-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10001; display: none;
}
.settings-overlay.show { display: block; }
.settings-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.settings-header h2 { font-size: 17px; font-weight: 600; color: #fff; }
.settings-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: none; border-radius: 8px;
    color: #fff; cursor: pointer;
}
.settings-close:hover { background: rgba(255,255,255,0.12); }
.settings-body { flex: 1; padding: 16px 24px 24px; overflow-y: auto; }
.settings-group { margin-bottom: 20px; }
.settings-group-title {
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.7); text-transform: uppercase;
    letter-spacing: 0.8px; margin-bottom: 8px;
}
.settings-item { padding: 8px 0; }
.lang-switch {
    display: flex; gap: 0;
    background: rgba(255,255,255,0.05); border-radius: 8px; padding: 2px;
}
.lang-btn {
    flex: 1; padding: 5px 14px; border: none; border-radius: 6px;
    background: transparent; color: rgba(255,255,255,0.7);
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all 0.15s ease; font-family: inherit;
}
.lang-btn:hover { color: rgba(255,255,255,0.85); }
.lang-btn.active {
    background: #1a1a1a; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 480px) { .settings-panel { width: 100%; } }
