* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: #e9ecef;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: #f4f5f7;
  position: relative;
  padding-bottom: 64px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e6ea;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

.catalog {
  padding: 16px;
  filter: blur(2.5px);
  opacity: 0.75;
  pointer-events: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.app-shell.authenticated .catalog {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.catalog h2 {
  font-size: 20px;
  color: #222;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-thumb {
  height: 110px;
  background: #eef1f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.app-shell.authenticated .modal-backdrop {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 350px;
  background: rgba(248, 249, 251, 0.96);
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card h1 {
  font-size: 20px;
  letter-spacing: 0.6px;
  color: #1f2937;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 18px;
}

.input-group {
  display: flex;
  align-items: center;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 12px;
  height: 46px;
}

.input-icon {
  margin-right: 10px;
  color: #374151;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
  outline: none;
}

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.status-text {
  min-height: 20px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin: 6px 0 16px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #4272b8;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links a {
  color: #3b69b0;
  text-decoration: none;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
}

.nav-item {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
}

.nav-item.active {
  color: #2563eb;
}
