* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #050608;
  color: #E8EAED;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.web-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

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

header {
  height: 64px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1A2028;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #3B82F6;
  text-shadow:
    0 0 8px rgba(59, 130, 246, 0.6),
    0 0 20px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(59, 130, 246, 0.2),
    0 2px 0 #1E40AF,
    0 4px 8px rgba(0, 0, 0, 0.8);
}

.lang { display: flex; gap: 6px; }

.lang span {
  font-size: 12px;
  color: #6B7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  user-select: none;
}

.lang span.active {
  color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}

.login {
  font-size: 13px;
  color: #E8EAED;
  background: #10141A;
  border: 1px solid #1A2028;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.login:hover { border-color: #3B82F6; color: #3B82F6; }

.layout {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  height: calc(100vh - 64px);
}

nav {
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-right: 1px solid #1A2028;
  padding: 16px 8px;
}

.nav-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #6B7280;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
  user-select: none;
}

.nav-item:hover { background: #10141A; color: #E8EAED; }

.nav-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

main {
  padding: 28px;
  overflow-y: auto;
}

.section { display: none; }
.section.active { display: block; }

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.search-bar input {
  flex: 1;
  background: #0A0D12;
  border: 1px solid #1A2028;
  color: #E8EAED;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.search-bar input:focus { border-color: #3B82F6; }

.search-bar button {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-bar button:hover { background: #2563EB; }

.types {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.types span {
  font-size: 13px;
  color: #6B7280;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #1A2028;
  cursor: pointer;
  user-select: none;
}

.types span:hover { color: #E8EAED; }

.types span.active {
  color: #3B82F6;
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.08);
}

.card {
  background: rgba(16, 20, 26, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid #1A2028;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 13px;
  color: #3B82F6;
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
}

.upload {
  border: 2px dashed #1A2028;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: #6B7280;
  cursor: pointer;
  margin-bottom: 20px;
}

.upload:hover { border-color: #3B82F6; color: #3B82F6; }

.upload .big { font-size: 15px; color: #E8EAED; margin-bottom: 6px; }
.upload .small { font-size: 12px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.tool {
  background: rgba(16, 20, 26, 0.8);
  border: 1px solid #1A2028;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
}

.tool:hover { border-color: #3B82F6; }
.tool .name { font-size: 14px; color: #E8EAED; margin-bottom: 6px; font-weight: 600; }
.tool .desc { font-size: 12px; color: #6B7280; line-height: 1.5; }

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #1A2028;
  font-size: 14px;
}

.profile-row .label { color: #6B7280; }
.profile-row .value { color: #E8EAED; }

.graph-placeholder {
  border: 2px dashed #1A2028;
  border-radius: 12px;
  padding: 80px 20px;
  text-align: center;
  color: #6B7280;
}

aside {
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-left: 1px solid #1A2028;
  padding: 28px;
}

aside h3 {
  font-size: 12px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.empty {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
}
/* Скрытый класс */
.hidden { display: none !important; }

/* Описание типа поиска */
.type-description {
  background: rgba(16, 20, 26, 0.6);
  border-left: 3px solid #3B82F6;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.type-description h3 {
  font-size: 14px;
  color: #3B82F6;
  margin-bottom: 6px;
  font-weight: 600;
}

.type-description p {
  font-size: 13px;
  color: #8A93A0;
  line-height: 1.6;
}

/* Кнопка подписки */
.subscribe {
  font-size: 13px;
  color: #050608;
  background: #3B82F6;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.subscribe:hover { background: #2563EB; }

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #0A0D12;
  border: 1px solid #1A2028;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 16px;
  color: #E8EAED;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover { color: #E8EAED; }

/* Планы */
.plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #10141A;
  border: 1px solid #1A2028;
  border-radius: 8px;
  padding: 14px 16px;
}

.plan:hover { border-color: #3B82F6; }

.plan-forever { border-color: rgba(59, 130, 246, 0.4); }

.plan-name { font-size: 14px; color: #E8EAED; }
.plan-price { font-size: 14px; color: #3B82F6; font-weight: 600; margin-left: auto; margin-right: 14px; }

.plan-buy {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.plan-buy:hover { background: #2563EB; }

/* Промокод */
.promo-block { border-top: 1px solid #1A2028; padding-top: 16px; }

.promo-toggle {
  background: none;
  border: none;
  color: #3B82F6;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.promo-toggle:hover { text-decoration: underline; }

.promo-input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.promo-input input {
  flex: 1;
  background: #10141A;
  border: 1px solid #1A2028;
  color: #E8EAED;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.promo-input input:focus { border-color: #3B82F6; }

.promo-input button {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
