:root {
  --page-bg: linear-gradient(180deg, #eef4ff 0%, #f7f9ff 34%, #eef2f9 100%);
  --sidebar-bg: rgba(248, 250, 255, 0.86);
  --panel-soft: rgba(59, 130, 246, 0.08);
  --line-soft: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent-strong: #2563eb;
}

html {
  height: 100%;
  background: #1a2340;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}


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

.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('1755189295026_s6f-L.jpg') center center / cover no-repeat;
  filter: blur(4px) brightness(0.65);
}

.center-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 10px;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.main-container {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(24px);
  width: min(90vw, 960px);
  height: min(78vh, 620px);
  min-width: 560px;
  min-height: 380px;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 160px;
  min-width: 160px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line-soft);
  padding: 10px;
  overflow: hidden;
}

.sidebar-brand {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(20px);
  padding: 12px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.sidebar-brand-icon {
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: white;
  margin-bottom: 8px;
}

.sidebar-brand-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sidebar-brand-sub {
  margin-top: 3px;
  font-size: 10px;
  color: var(--text-secondary);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.2); border-radius: 2px; }

.category {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 13px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  border: none;
  background: transparent;
  text-align: left;
}

.category:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-primary);
}

.category.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(99,102,241,0.22));
  color: var(--accent-strong);
}

/* ── Content area ── */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px;
  gap: 12px;
  flex-shrink: 0;
}

.page-header-title { flex: 1; min-width: 0; }

.header-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-sub-text {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

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

.search-box {
  display: flex;
  height: 36px;
  width: 200px;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.52);
  padding: 0 12px;
  backdrop-filter: blur(16px);
}

.search-icon { color: var(--text-secondary); flex-shrink: 0; }

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text-primary);
  font-family: inherit;
}

.search-input::placeholder { color: var(--text-secondary); }

.client-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  padding: 0 14px;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.client-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}

/* ── Software grid ── */
.software-group-card {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  min-height: 0;
}

.software-group-card::-webkit-scrollbar { width: 4px; }
.software-group-card::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.2); border-radius: 2px; }

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: start;
}

.software-card {
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(20px);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}

.software-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.card-icon-img {
  height: 36px;
  width: 36px;
  min-width: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.card-icon {
  height: 36px;
  width: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--panel-soft);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-strong);
}

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

.software-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.software-desc {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-action-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 22px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.22);
  opacity: 0;
  transition: opacity 140ms ease;
  cursor: pointer;
  text-decoration: none;
}

.card-action-btn:hover {
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.30);
}

.software-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 1);
  font-size: 11px;
  letter-spacing: 0.3px;
}
