/* ============================================================
   Customer Cabinet — extends styles.css
   ============================================================ */

.cabinet-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 48px 24px;
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(0, 184, 212, 0.10), transparent 60%),
    radial-gradient(800px 380px at 0% 100%, rgba(255, 180, 0, 0.10), transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card.center { text-align: center; }
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.auth-card p { color: var(--text-muted); }

.auth-card .form-row { margin-bottom: 16px; }
.auth-card form { margin-top: 24px; }

.auth-card .form-row label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.auth-card .form-row input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.auth-card .form-row input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.15);
}

.auth-note { margin-top: 22px; }

.auth-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-2-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

/* ===== Dashboard ===== */

.cabinet-main {
  padding-top: 56px;
  padding-bottom: 80px;
}
.cabinet-head {
  margin-bottom: 40px;
  text-align: center;
}
.cabinet-head h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cabinet-head .muted { max-width: 600px; margin: 0 auto 28px; }

.cabinet-search {
  max-width: 480px;
  margin: 0 auto;
}
.cabinet-search input {
  width: 100%;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cabinet-search input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.15);
}

.catalog { display: flex; flex-direction: column; gap: 48px; }

.category-block h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.category-block .category-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.datasheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.datasheet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.datasheet-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d8e1ec;
}

.datasheet-card .pdf-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.datasheet-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}
.datasheet-card .desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.datasheet-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.datasheet-card .actions a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.datasheet-card .actions a:hover { color: var(--text); }

.empty-state {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}

.cabinet-user { color: var(--text-muted); }

@media (max-width: 720px) {
  .auth-card { padding: 28px 22px; }
  .cabinet-main { padding-top: 32px; }
  .nav-menu .cabinet-user { display: none; }
}
