html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #10201a;
  background:
    radial-gradient(circle at 18% 22%, rgb(34 197 94 / 20%), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgb(16 185 129 / 14%), transparent 30rem),
    linear-gradient(135deg, #f8fff9 0%, #eef7f1 48%, #f7fbff 100%);
}

.site-shell {
  min-height: 100vh;
}

.site-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-main-home {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-hero {
  display: grid;
  width: min(100%, 920px);
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.app-icon-stage {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
}

.app-icon-glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(34 197 94 / 28%), rgb(20 184 166 / 18%));
  filter: blur(0.25rem);
}

.app-icon {
  position: relative;
  width: clamp(8.5rem, 18vw, 12rem);
  height: clamp(8.5rem, 18vw, 12rem);
  object-fit: contain;
  border-radius: 2.25rem;
  box-shadow:
    0 1.25rem 3rem rgb(15 23 42 / 18%),
    0 0 0 0.6rem rgb(255 255 255 / 75%);
}

.android-badge {
  position: absolute;
  right: 0.4rem;
  bottom: 2.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #075e38;
  background: #d9fbe5;
  border: 1px solid rgb(34 197 94 / 35%);
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.5rem rgb(15 23 42 / 10%);
}

.download-panel {
  padding: clamp(2rem, 4vw, 3.25rem);
  background: rgb(255 255 255 / 78%);
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 2rem;
  box-shadow:
    0 1.5rem 4rem rgb(15 23 42 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
  backdrop-filter: blur(1rem);
}

.download-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-panel h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 0.95;
  color: #0f172a;
  letter-spacing: -0.06em;
}

.download-description {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: #475569;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #16a34a, #0f766e);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgb(22 163 74 / 26%);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.download-button:hover {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2.4rem rgb(22 163 74 / 32%);
}

.download-button-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #0f5132;
  background: rgb(255 255 255 / 92%);
  border-radius: 999px;
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.admin-nav {
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.admin-nav .nav-link:not(.active) {
  color: #334155;
  background: #e9eef5;
}

.admin-section-card,
.admin-form-card,
.license-result-card {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 0.2rem 0.8rem rgb(15 23 42 / 6%);
}

.admin-section-card {
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.admin-section-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.2rem rgb(15 23 42 / 10%);
}

.admin-form-card,
.license-result-card {
  max-width: 720px;
}

.admin-table-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  box-shadow: 0 0.2rem 0.8rem rgb(15 23 42 / 5%);
}

.admin-table-wrapper .table {
  min-width: 860px;
}

.admin-table-wrapper thead th {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  white-space: nowrap;
  color: #475569;
  background: #f1f5f9;
  border-bottom-width: 1px;
}

.admin-table-wrapper tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
}

.key-last4,
.license-key-output {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.license-key-output {
  font-family: var(--bs-font-monospace);
}

.fingerprint,
.entity-id {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fingerprint {
  display: inline-block;
  min-width: 18rem;
  max-width: 28rem;
  white-space: normal;
}

.trust-reason {
  min-width: 14rem;
  max-width: 24rem;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .site-main-home {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .app-icon-stage {
    min-height: 210px;
  }

  .android-badge {
    right: calc(50% - 6.5rem);
    bottom: 1rem;
  }

  .download-panel {
    border-radius: 1.5rem;
  }

  .download-button {
    width: 100%;
    justify-content: center;
  }

  .admin-heading {
    flex-direction: column;
  }

  .admin-heading > .btn {
    width: 100%;
  }

  .admin-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
