:root {
  color-scheme: light;
  --bg: #fff5eb;
  --card: #ffffff;
  --text: #111111;
  --muted: #3b3b3b;
  --line: #f2bb8a;
  --primary: #f07a1f;
  --primary-dark: #d9650f;
  --danger: #b93a15;
  --ok: #2e7d32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(145deg, #fffaf6 0%, var(--bg) 55%, #ffffff 100%);
  color: var(--text);
}

.landing {
  min-height: 100vh;
  padding: 0 0 2rem;
}

.hero {
  padding: 1.4rem 1.4rem 0.8rem;
}

.hero-content {
  width: 100%;
  margin: 0;
  text-align: left;
  background: linear-gradient(130deg, #ffffff 0%, #fff0e2 100%);
  border: 1px solid #f4c394;
  border-radius: 22px;
  padding: 1.4rem 1rem;
}

.hero-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #ffe6d1;
  border: 1px solid #ffc48f;
  color: #9a4f14;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-title {
  margin: 0.85rem 0 0.2rem;
  color: #0f0f0f;
}

.auth-subtitle {
  margin: 0 0 0.8rem;
  color: #2f2f2f;
}

.hero-points {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-points span {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 0.3rem 0.64rem;
  font-size: 0.84rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 1rem;
  align-items: start;
  gap: 1rem;
  padding: 0 1.4rem;
}

.auth-shell.single-form {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto 1rem;
}

.auth-shell.single-form .auth-center {
  max-width: 100%;
}

.auth-center {
  width: 100%;
  margin: 0;
  text-align: left;
}

.auth-visual {
  min-height: 360px;
  border-radius: 16px;
  border: 1px solid #f1c69f;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(120, 120, 120, 0.22), rgba(45, 45, 45, 0.22)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  box-shadow: inset 0 0 0 9999px rgba(120, 120, 120, 0.08);
}

.visual-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(20, 20, 20, 0.35);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 0.8rem;
  backdrop-filter: blur(1px);
}

.visual-copy h3 {
  margin: 0 0 0.3rem;
}

.visual-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #f0d2b6;
  border-radius: 24px;
  padding: 1.2rem 1rem;
  text-align: left;
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.08);
}

.auth-card h2 {
  margin: 0 0 0.3rem;
}

.auth-actions {
  margin-top: 0.7rem;
  text-align: center;
}

.auth-actions button {
  width: 100%;
}

.auth-msg {
  margin-top: 0.8rem;
}

.register-card {
  margin-top: 0.9rem;
  text-align: left;
}

.hidden {
  display: none;
}

.container {
  width: 100%;
  max-width: none;
  margin: 1rem 0;
  padding: 0 1.4rem 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(18, 18, 18, 0.06);
}

.pricing-card.glow {
  width: calc(100% - 2.8rem);
  margin: 0.4rem 1.4rem 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.price-item {
  border: 1px solid #f0d2b6;
  border-radius: 14px;
  padding: 0.92rem;
  background: #ffffff;
}

.price-item.premium {
  border-color: #f6b276;
  background: linear-gradient(180deg, #fff3e8 0%, #ffffff 100%);
}

.price {
  color: #d9650f;
  font-weight: 700;
}

.price-item ul {
  margin: 0.45rem 0 0.9rem;
  padding-left: 1rem;
  color: #2f2f2f;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
button,
select {
  font: inherit;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select {
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #ffffff;
  color: #111111;
}

button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

button.ghost {
  background: #ef7c24;
  color: #ffffff;
  border-color: #d9650f;
}

.muted {
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 0.72rem;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #efd0b0;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar.colorful {
  background: linear-gradient(90deg, #fff2e5 0%, #ffffff 45%, #fff8f1 100%);
}

.topbar h1 {
  margin: 0 0 0.2rem;
}

.topbar p {
  margin: 0;
  color: #3c3c3c;
}

.badge {
  background: #ffebdb;
  color: #6e3200;
  border: 1px solid #ffc896;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.checkbox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 0.7rem;
}

.item {
  border: 1px solid #f0d2b6;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.item-name {
  margin: 0;
  font-size: 1rem;
}

.item-meta,
.item-reminder {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.status-expired {
  color: var(--danger);
  font-weight: 600;
}

.status-reminder {
  color: #d97706;
  font-weight: 600;
}

.status-safe {
  color: var(--ok);
  font-weight: 600;
}

.used {
  opacity: 0.6;
}

.subscription-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-pill {
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ffc796;
  color: #5d2c00;
  background: #ffefe1;
  font-weight: 600;
}

.nav-pill.active {
  background: #ef7c24;
  border-color: #d9650f;
  color: #ffffff;
}

.camera-wrap {
  border: 2px dashed #f5bf8d;
  border-radius: 14px;
  padding: 0.75rem;
  background: #fffaf6;
}

#cameraPreview {
  width: 100%;
  max-height: 320px;
  background: #111111;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.scan-info {
  margin-top: 0.65rem;
  color: #4c2a0d;
  background: #ffefe1;
  border: 1px solid #ffd4ae;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.item-table {
  width: 100%;
  border-collapse: collapse;
}

.item-table th,
.item-table td {
  border-bottom: 1px solid #f0d2b6;
  padding: 0.6rem 0.45rem;
  text-align: left;
  vertical-align: middle;
}

.status-cell {
  display: flex;
  gap: 0.45rem;
}

.status-btn {
  min-width: 38px;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  line-height: 1;
}

.use-btn {
  background: #ececec;
  color: #2a2a2a;
  border: 1px solid #d4d4d4;
}

.use-btn.active {
  background: #1fa149;
  border-color: #1a8c3f;
  color: #ffffff;
}

.trash-btn {
  background: #111111;
  color: #ffffff;
}

.sticker-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.sticker {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f0d2b6;
}

@media (max-width: 780px) {
  .hero {
    padding: 1rem 1rem 0.7rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-points {
    justify-content: flex-start;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .auth-visual {
    min-height: 180px;
  }

  .pricing-card.glow {
    width: calc(100% - 2rem);
    margin: 0.4rem 1rem 0;
  }

  .container {
    padding: 0 1rem 2rem;
  }
}
