@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

/* =========================================================
   ROOT
========================================================= */

:root {
  color-scheme: dark;

  --bg: #08090d;
  --panel: #101218;
  --panel2: #151820;
  --border: #262a35;

  --text: #f4f5f7;
  --muted: #969cab;

  --accent: #a78bfa;
  --accent2: #8b5cf6;

  --danger: #fb7185;
  --success: #34d399;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   MAIN SHELL
========================================================= */

.shell {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(139, 92, 246, 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(56, 189, 248, 0.06),
      transparent 28rem
    ),
    var(--bg);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.center {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 24px;
}

/* =========================================================
   CARDS
========================================================= */

.card {
  background: rgba(16, 18, 24, 0.88);

  border: 1px solid var(--border);
  border-radius: 24px;

  box-shadow: var(--shadow);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.customer-card {
  width: min(440px, 100%);
  padding: 42px;

  text-align: center;
}

/* =========================================================
   LOGO
========================================================= */

.logo {
  width: 48px;
  height: 48px;

  position: relative;
  overflow: hidden;

  margin: 0 auto 24px;

  border-radius: 14px;

  box-shadow:
    0 12px 30px rgba(139, 92, 246, 0.3);
}

.logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Purple tint */
.logo::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    var(--accent2),
    #7c3aed
  );

  opacity: 0.25;

  pointer-events: none;
}




/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 30px;
  margin: 0 0 10px;
}

h2 {
  font-size: 22px;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.small {
  font-size: 12px;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

.field {
  margin: 24px 0 14px;
  text-align: left;
}

label {
  display: block;

  margin-bottom: 8px;

  color: #c9ccd5;

  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 100%;

  padding: 13px 14px;

  background: #0c0e13;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 13px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input::placeholder {
  color: #626875;
}

input:focus,
select:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(167, 139, 250, 0.12);
}

.code-input {
  text-transform: uppercase;
  letter-spacing: 0.14em;

  font-weight: 700;
  text-align: center;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  border: 0;
  border-radius: 13px;

  padding: 13px 16px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      var(--accent2),
      #7c3aed
    );

  font-weight: 700;

  box-shadow:
    0 10px 25px rgba(124, 58, 237, 0.22);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn.secondary {
  background: #1a1d25;

  border: 1px solid var(--border);

  box-shadow: none;
}

.btn.secondary:hover {
  background: #20232c;
}

.btn.danger {
  background: rgba(251, 113, 133, 0.12);

  color: #fda4af;

  border: 1px solid rgba(251, 113, 133, 0.25);

  box-shadow: none;
}

.btn.danger:hover {
  background: rgba(251, 113, 133, 0.17);
}

.full {
  width: 100%;
}

/* =========================================================
   FORM ERROR
========================================================= */

.error {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  margin-top: 14px;
  padding: 11px 13px;

  border: 1px solid rgba(251, 113, 133, 0.14);
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(251, 113, 133, 0.075),
      rgba(251, 113, 133, 0.035)
    );

  color: #fda4af;

  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;

  text-align: left;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 4px 14px rgba(0, 0, 0, 0.08);

  animation: error-in 0.18s ease-out;
}

.error-icon {
  display: grid;
  place-items: center;

  width: 19px;
  height: 19px;
  min-width: 19px;

  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 50%;

  background: rgba(251, 113, 133, 0.09);
  color: #fb7185;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.025);
}

.error-message {
  min-width: 0;
  flex: 1;
}

/* =========================================================
   ERROR ANIMATION
========================================================= */

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   CUSTOMER PAGE ERROR
========================================================= */

.customer-card .error {
  margin-top: 14px;
}

.customer-card .error-icon {
  flex-shrink: 0;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .error {
    animation: none;
  }
}

/* =========================================================
   HEADER
========================================================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 0;

  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand span {
  color: var(--accent);
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {
  padding: 34px 0 70px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin: 28px 0 18px;

  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;

  gap: 10px;

  flex-wrap: wrap;
}

.grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 18px;
}

.panel {
  padding: 24px;
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;
}

.check {
  display: flex;
  align-items: center;

  gap: 10px;

  color: #d9dbe2;

  font-size: 14px;
}

.check input {
  width: auto;
}

/* =========================================================
   RESULT
========================================================= */

.result {
  margin-top: 18px;
  padding: 18px;

  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 16px;

  background: rgba(167, 139, 250, 0.06);
}

.big-code {
  margin: 8px 0 16px;

  font-family: "Manrope", sans-serif;

  font-size: 30px;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.actions {
  display: flex;

  gap: 9px;

  flex-wrap: wrap;
}

/* =========================================================
   TABLE
========================================================= */

.table-wrap {
  overflow: auto;

  border: 1px solid var(--border);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 850px;

  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;

  border-bottom: 1px solid var(--border);

  font-size: 13px;

  text-align: left;
}

th {
  background: #0d0f14;

  color: #888e9d;

  font-weight: 600;
}

td {
  color: #d9dbe2;
}

tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
   STATUS BADGES
========================================================= */

.badge {
  display: inline-flex;
  align-items: center;

  border-radius: 999px;

  padding: 5px 9px;

  font-size: 11px;
  font-weight: 700;
}

.active {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}

.expired,
.used {
  background: rgba(148, 163, 184, 0.1);
  color: #aeb5c3;
}

.revoked {
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}

/* =========================================================
   SEARCH
========================================================= */

.search {
  width: 220px;
}

/* =========================================================
   CUSTOMER REFERENCE PAGE
   Scoped to .customer-card
========================================================= */

.customer-card .reference-brand {
  display: flex;
  justify-content: center;

  margin-bottom: 20px;
}

.customer-card .reference-brand .logo {
  margin: 0;
}

/* =========================================================
   REFERENCE HEADING
========================================================= */

.customer-card .reference-heading .eyebrow {
  margin-bottom: 7px;

  color: #c4b5fd;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
}

.customer-card .reference-heading h1 {
  margin: 0 0 10px;

  color: var(--text);

  font-family: "Manrope", sans-serif;

  font-size: 29px;
  font-weight: 800;

  line-height: 1.12;

  letter-spacing: -0.035em;
}

.customer-card .reference-heading .muted {
  max-width: 330px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.6;
}

/* =========================================================
   REFERENCE FORM
========================================================= */

.customer-card .reference-form {
  margin-top: 27px;

  text-align: left;
}

.customer-card .reference-form .field {
  margin: 0 0 14px;
}

.customer-card .reference-form label {
  margin-bottom: 8px;

  font-size: 12px;
}

.customer-card .reference-form input {
  height: 50px;

  padding: 0 15px;
}

.customer-card .reference-form .code-input {
  font-family: "Manrope", sans-serif;

  font-size: 14px;
}

/* =========================================================
   REFERENCE BUTTON
========================================================= */

.customer-card .reference-button {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  height: 50px;

  padding: 0 16px;

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.customer-card .reference-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 13px 32px rgba(124, 58, 237, 0.3);
}

.customer-card .reference-button:active {
  transform: translateY(0);
}

.customer-card .button-arrow {
  font-size: 16px;
  line-height: 1;
}

/* =========================================================
   SECURE CONNECTION NOTICE
========================================================= */

.customer-card .security-notice {
  display: flex;
  align-items: center;

  width: 100%;

  margin-top: 22px;
  padding: 13px 14px;

  text-align: left;

  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);
}

/* =========================================================
   SECURITY ICON
========================================================= */

.customer-card .security-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 11px;

  border-radius: 9px;

  color: #b8a4ff;

  background: rgba(139, 92, 246, 0.1);
}

.customer-card .security-icon svg {
  width: 17px;
  height: 17px;

  display: block;
}

/* =========================================================
   SECURITY COPY
========================================================= */

.customer-card .security-copy {
  min-width: 0;

  flex: 1;
}

.customer-card .security-copy strong {
  display: block;

  margin-bottom: 2px;

  color: #e2e4e9;

  font-size: 11px;
  font-weight: 700;
}

.customer-card .security-copy span {
  display: block;

  color: #8e94a1;

  font-size: 10px;

  line-height: 1.45;
}

/* =========================================================
   ACTIVE CONNECTION INDICATOR
========================================================= */

.customer-card .security-check {
  position: relative;

  display: block;

  width: 18px;
  height: 18px;

  min-width: 18px;
  max-width: 18px;

  flex: 0 0 18px;

  margin-left: 9px;
  padding: 0;

  box-sizing: border-box;

  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 50%;

  background: rgba(52, 211, 153, 0.08);
}

/* Green dot */

.customer-card .security-check::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 5px;
  height: 5px;

  margin: 0;
  padding: 0;

  border-radius: 50%;

  background: #34d399;

  transform: translate(-50%, -50%);

  box-shadow:
    0 0 5px rgba(52, 211, 153, 0.75),
    0 0 10px rgba(52, 211, 153, 0.25);

  animation:
    customer-online-pulse 1.8s ease-in-out infinite;
}

@keyframes customer-online-pulse {
  0%,
  100% {
    opacity: 0.55;

    box-shadow:
      0 0 4px rgba(52, 211, 153, 0.55),
      0 0 8px rgba(52, 211, 153, 0.18);
  }

  50% {
    opacity: 1;

    box-shadow:
      0 0 6px rgba(52, 211, 153, 0.95),
      0 0 12px rgba(52, 211, 153, 0.35);
  }
}

/* =========================================================
   REGULATORY & INSTITUTIONAL NOTICE
========================================================= */

.customer-card .regulatory-status {
  display: block !important;

  width: 100% !important;

  margin-top: 22px !important;
  padding: 10px 8px 4px !important;

  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;

  text-align: center !important;
}

.customer-card .regulatory-status span {
  display: block !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #969cab !important;

  font-size: 11px !important;
  font-weight: 500 !important;

  line-height: 1.5 !important;

  letter-spacing: 0.01em !important;

  opacity: 0.75 !important;
}

.customer-card .regulatory-status .institutional-status {
  margin-top: 8px !important;

  font-size: 10.5px !important;

  line-height: 1.55 !important;

  opacity: 0.55 !important;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .customer-card {
    padding: 28px 22px;
  }

  .header {
    gap: 14px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .center {
    padding: 16px;
  }

  .customer-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .customer-card .reference-heading h1 {
    font-size: 25px;
  }

  .customer-card .reference-heading .muted {
    font-size: 13.5px;
  }

  .customer-card .security-notice {
    padding: 12px;
  }

  .customer-card .regulatory-status {
    margin-top: 20px !important;
    padding: 9px 6px 3px !important;
  }

.customer-card .regulatory-status .regulatory-title strong {
  color: #fff;
  font-weight: 700;
  display: inline;
}
  .customer-card .regulatory-status .institutional-status {
    font-size: 10px !important;
  }

  .search {
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
  }
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 380px) {
  .customer-card {
    padding: 24px 16px;
  }

  .customer-card .reference-heading h1 {
    font-size: 23px;
  }

  .customer-card .security-copy span {
    font-size: 9.5px;
  }

  .customer-card .security-check {
    margin-left: 7px;
  }
}