.lh-license-portal,
.lh-license-portal * { box-sizing: border-box; }

.lh-license-portal {
  width: min(820px, 100%);
  margin: 24px auto;
  padding: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lh-license-portal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8eef5;
}

.lh-license-portal__logo-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(145deg, #e8fff2, #f6fbff);
  border: 1px solid #d9f4e5;
}

.lh-license-portal__logo { width: 40px; height: 40px; object-fit: contain; }
.lh-license-portal__title { margin: 0 0 5px; color: #0a1830; font-size: clamp(26px, 4vw, 34px); line-height: 1.08; font-weight: 850; letter-spacing: -.03em; }
.lh-license-portal__subtitle { margin: 0; color: #64748b; font-size: 15px; line-height: 1.55; }
.lh-license-portal__intro { margin: 0 0 22px; color: #475569; font-size: 15px; line-height: 1.7; }

.lh-license-portal__message {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
}
.lh-license-portal__message.is-success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.lh-license-portal__message.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.lh-license-portal__form { display: grid; gap: 16px; }
.lh-license-portal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lh-license-portal__field { display: grid; gap: 7px; }
.lh-license-portal__field > span { color: #334155; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.lh-license-portal__input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lh-license-portal__input:focus { border-color: #18b16a; box-shadow: 0 0 0 3px rgba(24, 177, 106, .13); }
.lh-license-portal__input--code { text-align: center; font-size: 24px; letter-spacing: .32em; font-weight: 800; }

.lh-license-portal__button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  background: linear-gradient(135deg, #18b16a, #0f8e52);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(24,177,106,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.lh-license-portal__button:hover { transform: translateY(-1px); filter: brightness(.98); box-shadow: 0 18px 34px rgba(24,177,106,.28); }
.lh-license-portal__security { margin: -2px 0 0; color: #718096; font-size: 12px; line-height: 1.5; text-align: center; }

.lh-license-portal__results { display: grid; gap: 14px; }
.lh-license-result {
  padding: 18px;
  border: 1.5px solid #16a34a;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfefc);
}
.lh-license-result__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 13px; }
.lh-license-result__status { display: inline-flex; align-items: center; gap: 8px; color: #0f172a; font-weight: 800; }
.lh-license-result__dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.lh-license-result.is-inactive { border-color: #ef4444; }
.lh-license-result.is-inactive .lh-license-result__dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.lh-license-result__validity { color: #64748b; font-size: 13px; }
.lh-license-result__validity strong { color: #0f172a; }
.lh-license-result__keybox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 15px;
  border-radius: 14px;
  background: #0a1830;
}
.lh-license-result__key { color: #4ade80; font-size: clamp(15px, 3vw, 20px); font-weight: 850; letter-spacing: .08em; word-break: break-word; }
.lh-license-portal__copy {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.lh-account-license-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #dfe8f1;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #f0fff7);
}
.lh-account-license-shortcut strong { display: block; color: #0a1830; font-size: 17px; margin-bottom: 4px; }
.lh-account-license-shortcut span { display: block; color: #64748b; font-size: 13px; }
.lh-account-license-shortcut a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #18b16a;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.lh-account-license-title { color: #0a1830; margin-bottom: 6px; }
.lh-account-license-intro { color: #64748b; margin-top: 0; }

@media (max-width: 767px) {
  .lh-license-portal { margin: 10px auto; padding: 24px 18px; border-radius: 20px; }
  .lh-license-portal__header { align-items: flex-start; }
  .lh-license-portal__logo-wrap { width: 52px; height: 52px; border-radius: 15px; }
  .lh-license-portal__logo { width: 34px; height: 34px; }
  .lh-license-portal__grid { grid-template-columns: 1fr; }
  .lh-license-result__keybox { align-items: stretch; }
  .lh-license-portal__copy { width: 100%; }
  .lh-account-license-shortcut { align-items: stretch; flex-direction: column; }
  .lh-account-license-shortcut a { width: 100%; }
}
