* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1020;
  color: #e8ecf3;
}

body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, rgba(70, 100, 180, 0.18), transparent 35%),
    linear-gradient(180deg, #0b1020 0%, #11182b 100%);
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: #b7c0d4;
  line-height: 1.5;
}

.card {
  background: rgba(18, 27, 47, 0.95);
  border: 1px solid rgba(130, 150, 190, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.input-card {
  margin-bottom: 18px;
}

.label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(145, 165, 205, 0.2);
  background: #0f172a;
  color: #f4f7fb;
  font-size: 1rem;
  outline: none;
}

.input-row input::placeholder {
  color: #7f8aa3;
}

.input-row input:focus {
  border-color: rgba(115, 150, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(90, 125, 230, 0.15);
}

.input-row button,
.copy-btn,
.unlock-pro-btn {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: #3d6df2;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #d4dbeb;
  font-size: 0.98rem;
}

.helper-text {
  margin: 14px 0 0;
  color: #8e98af;
  font-size: 0.92rem;
  line-height: 1.4;
}

.error-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(120, 25, 25, 0.22);
  color: #ffd0d0;
}

.results {
  display: grid;
  gap: 12px;
}

.results h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.results p {
  margin: 0 0 8px;
  color: #dbe3f2;
  line-height: 1.35;
}

.results p:last-child {
  margin-bottom: 0;
}

.packet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.packet-grid.single-column {
  grid-template-columns: 1fr;
}

.packet-block {
  background: rgba(10, 18, 36, 0.35);
  border: 1px solid rgba(130, 150, 190, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
}

.packet-mini-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3c7;
  margin-bottom: 8px;
}

.packet-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f4f7fb;
  margin-bottom: 6px;
  line-height: 1.2;
}

.packet-description {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #d7def0;
}

.share-text {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #d7def0;
}

.copy-btn {
  margin-top: 10px;
}

.copy-status {
  margin-top: 10px;
  color: #9ed0a8;
  font-size: 0.95rem;
}

.lite-footer {
  border: 1px solid rgba(85, 120, 220, 0.22);
  background: rgba(21, 31, 58, 0.98);
}

.lite-footer-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91a7df;
  margin-bottom: 10px;
}

.lite-footer-text {
  margin-bottom: 14px !important;
  color: #d7def0;
  line-height: 1.45;
}

.unlock-pro-btn {
  min-width: 220px;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 20px 12px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 14px 16px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button,
  .copy-btn,
  .unlock-pro-btn {
    width: 100%;
  }

  .packet-grid {
    grid-template-columns: 1fr;
  }
}
