@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
  --black: #05070a;
  --ink: #151c27;
  --muted: #5c5f60;
  --line: #d5dbe5;
  --line-dark: #2a313d;
  --paper: #ffffff;
  --surface: #f9f9ff;
  --surface-soft: #f5f7f8;
  --surface-mid: #e7eefe;
  --yellow: #ffb81c;
  --yellow-soft: #fff2c8;
  --yellow-dark: #7d5700;
  --green: #167444;
  --red: #ba1a1a;
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html {
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

code {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--black);
  display: inline-block;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.muted {
  color: var(--muted);
}

.eyebrow-mini,
.panel-kicker {
  color: var(--yellow-dark);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.full-width {
  width: 100%;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 900;
}

.brand-logo-lockup img {
  background: var(--paper);
  border: 1px solid rgba(255, 184, 28, 0.35);
  display: block;
  height: 48px;
  object-fit: contain;
  padding: 7px 10px;
  width: 220px;
}

.brand-logo-lockup span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary,
.btn-gold,
.btn-dark,
.btn-light,
.btn-danger {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.15;
  min-height: 44px;
  padding: 12px 16px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary,
.btn-gold {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn-danger {
  background: #fff2f1;
  border-color: #ffd4cf;
  color: var(--red);
}

.btn-primary:hover,
.btn-gold:hover,
.btn-dark:hover,
.btn-light:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-gold:disabled,
.btn-dark:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.notice,
.ajax-message {
  border: 1px solid transparent;
  font-weight: 700;
  margin: 16px 0;
  padding: 12px 14px;
}

.notice.success,
.ajax-message.success {
  background: #ecfdf3;
  border-color: #b7e5c9;
  color: var(--green);
}

.notice.error,
.ajax-message.error {
  background: #fff2f1;
  border-color: #ffd4cf;
  color: var(--red);
}

.ajax-message.info {
  background: #f0f3ff;
  border-color: var(--surface-mid);
  color: var(--ink);
}

.ajax-message:empty {
  display: none;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.18);
  outline: none;
}

.stacked-form {
  display: grid;
  gap: 16px;
}

.checkline {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.checkline input {
  min-height: 0;
  width: auto;
}

/* Login */
.login-page {
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  place-items: center;
  position: relative;
}

.login-page::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 184, 28, 0.2), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 96px);
  content: "";
  height: 240px;
  left: -10%;
  position: absolute;
  right: -10%;
  top: 17%;
  transform: skewY(-8deg);
}

body.login-page,
body.admin-shell {
  background:
    radial-gradient(circle at top right, rgba(255, 184, 28, 0.18), transparent 30%),
    linear-gradient(120deg, #05070a, #101821);
}

.login-card {
  background: var(--paper);
  border: 1px solid rgba(255, 184, 28, 0.35);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  max-width: 500px;
  padding: 32px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-logo-lockup {
  background: var(--paper);
  border-bottom: 4px solid var(--yellow);
  display: grid;
  gap: 10px;
  margin: -8px -8px 28px;
  padding: 14px;
}

.login-logo-lockup img {
  border: 0;
  height: auto;
  max-width: 340px;
  padding: 0;
  width: 100%;
}

.login-logo-lockup span {
  color: var(--yellow-dark);
}

.login-card h1 {
  color: var(--black);
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1;
  margin: 0 0 14px;
}

.login-card p {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 24px;
}

.login-card .btn-primary {
  min-height: 52px;
}

.remember-login {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
}

.admin-sidebar {
  background: var(--black);
  border-right: 1px solid rgba(255, 184, 28, 0.26);
  min-height: 100vh;
  padding: 24px;
  position: sticky;
  top: 0;
}

.admin-sidebar .brand-logo-lockup {
  align-items: flex-start;
  display: grid;
}

.admin-sidebar .brand-logo-lockup img {
  height: auto;
  max-width: 100%;
  min-height: 46px;
  width: 210px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.admin-sidebar nav a {
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 900;
  padding: 13px 14px;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255, 184, 28, 0.11);
  border-color: rgba(255, 184, 28, 0.38);
  color: var(--yellow);
}

.admin-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 249, 255, 0.96)),
    var(--surface);
  min-height: 100vh;
  padding: 32px;
}

.admin-topbar,
.admin-page-intro,
.panel-head,
.section-heading,
.directory-head {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.admin-topbar {
  background: var(--black);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  margin-bottom: 24px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.admin-topbar::after {
  background: var(--yellow);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.admin-topbar h1,
.admin-page-intro h2,
.section-heading h2 {
  color: inherit;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 4px 0 0;
}

.admin-topbar .eyebrow-mini {
  color: var(--yellow);
}

.admin-pill,
.status-chip,
.points-tag {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 10px;
  text-transform: capitalize;
}

.admin-pill {
  background: rgba(255, 184, 28, 0.12);
  border-color: rgba(255, 184, 28, 0.42);
  color: var(--yellow);
}

.status-chip {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}

.admin-page-intro {
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  padding: 24px;
}

.admin-page-intro h2 {
  color: var(--black);
}

.admin-page-intro p,
.panel p {
  margin: 8px 0 0;
}

.admin-actions,
.directory-tools,
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 24px;
  position: relative;
}

.metric-card::before {
  background: var(--yellow);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--black);
  display: block;
  font-size: 46px;
  line-height: 1;
  margin-top: 12px;
}

.panel {
  margin-bottom: 24px;
  padding: 24px;
}

.panel h2 {
  color: var(--black);
  font-size: 28px;
  line-height: 1.15;
  margin: 4px 0 0;
}

.employee-management-grid,
.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 24px;
}

.employee-import-panel {
  background:
    linear-gradient(135deg, rgba(255, 184, 28, 0.11), rgba(255, 255, 255, 0) 52%),
    var(--paper);
}

.file-drop {
  background: var(--surface-soft);
  border: 1px dashed var(--muted);
  cursor: pointer;
  gap: 9px;
  padding: 18px;
}

.file-drop input {
  background: transparent;
  border: 0;
  min-height: auto;
  padding: 0;
}

.file-drop span {
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.file-drop small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.executive-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.executive-form button {
  grid-column: 1 / -1;
}

.edit-employee-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edit-employee-form .wide,
.form-actions.wide {
  grid-column: 1 / -1;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-directory-panel {
  padding: 0;
}

.employee-directory-panel .panel-head {
  padding: 24px;
}

.search-field {
  min-width: 260px;
}

.filter-field {
  min-width: 150px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--black);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

tbody tr:hover td {
  background: #fff7df;
}

.employee-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 190px;
}

.employee-cell span {
  align-items: center;
  background: var(--black);
  color: var(--yellow);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.product-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-form .wide {
  grid-column: 1 / -1;
}

/* Rewards storefront app */
.storefront {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7f8 52%, #f9f9ff 100%);
  color: var(--ink);
}

.store-page {
  margin: 0 auto;
  max-width: 1280px;
  padding: clamp(24px, 4vw, 52px) clamp(18px, 5vw, 64px) 80px;
}

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
}

.hero-panel::before {
  background: var(--yellow);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  color: var(--black);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  margin: 14px 0 18px;
  max-width: 660px;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.45;
  margin: 0;
  max-width: 610px;
}

.code-form {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 154px;
  margin-top: 28px;
  max-width: 660px;
  padding: 8px;
}

.code-form input {
  background: var(--surface-soft);
  border-color: transparent;
  font-size: 17px;
  font-weight: 700;
  min-height: 56px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-trust span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.aircraft-panel {
  background: var(--black);
  color: var(--paper);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.aircraft-panel > img {
  filter: saturate(1.02) contrast(1.04);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.aircraft-panel::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.28) 58%, rgba(5, 7, 10, 0.08)),
    linear-gradient(0deg, rgba(5, 7, 10, 0.82), transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.aircraft-panel > div {
  position: relative;
  z-index: 2;
}

.aircraft-panel > div:first-of-type {
  padding: 30px;
}

.aircraft-panel span,
.aircraft-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.aircraft-panel .appreciation-label {
  color: var(--paper);
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  margin: 116px 0 18px;
  max-width: 460px;
}

.aircraft-panel h2 {
  color: var(--paper);
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 420px;
}

.balance-orb {
  align-items: baseline;
  background: rgba(5, 7, 10, 0.72);
  border: 1px solid rgba(255, 184, 28, 0.44);
  bottom: 24px;
  display: flex;
  gap: 10px;
  left: 30px;
  padding: 18px 20px;
  position: absolute;
  right: 30px;
}

.balance-orb strong {
  color: var(--yellow);
  font-size: 46px;
  line-height: 1;
}

.store-grid-section {
  margin-top: 34px;
}

.section-heading {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
}

.section-heading h2 {
  color: var(--black);
}

.balance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.balance-summary span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  padding: 10px 12px;
}

.balance-summary strong {
  color: var(--black);
}

.store-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 24px;
}

.reward-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reward-card,
.cart-panel,
.confirmation-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.reward-card {
  display: grid;
  grid-template-rows: 230px minmax(250px, 1fr);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.reward-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.reward-image {
  align-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 64px;
  font-weight: 900;
  justify-content: center;
  padding: 16px;
}

.reward-image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.reward-body {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
}

.reward-body h3 {
  color: var(--black);
  font-size: 22px;
  line-height: 1.14;
  margin: 0;
}

.reward-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.reward-option {
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.reward-option select {
  min-height: 42px;
}

.reward-foot,
.cart-line,
.cart-item {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.points-tag {
  background: var(--yellow-soft);
  border-color: rgba(255, 184, 28, 0.55);
  color: var(--yellow-dark);
}

.cart-panel {
  align-self: start;
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.cart-heading {
  background: var(--black);
  border-bottom: 4px solid var(--yellow);
  color: var(--paper);
  padding: 22px;
}

.cart-heading .eyebrow-mini {
  color: var(--yellow);
}

.cart-heading h2 {
  color: var(--paper);
  font-size: 28px;
  line-height: 1.15;
  margin: 5px 0 0;
}

.cart-items {
  min-height: 92px;
  padding: 20px 22px 8px;
}

.cart-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 9px;
  padding: 10px;
}

.cart-item small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.cart-item button {
  background: #fff2f1;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 9px;
}

.cart-line {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  margin: 0 22px;
  padding: 13px 0;
}

.cart-line strong {
  color: var(--black);
}

.cart-panel > .btn-primary,
.cart-panel > .ajax-message {
  margin: 0 22px 22px;
}

.confirmation-panel {
  align-items: center;
  display: none;
  gap: 18px;
  margin-top: 40px;
  padding: 26px;
}

.confirmation-panel.visible {
  display: flex;
}

.success-mark {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #b7e5c9;
  color: var(--green);
  display: flex;
  flex: 0 0 64px;
  font-size: 32px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
}

@media (max-width: 1080px) {
  .admin-shell,
  .hero-panel,
  .store-grid,
  .employee-management-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
  }

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .metric-grid,
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-main,
  .store-page {
    padding: 20px 14px 60px;
  }

  .admin-topbar,
  .admin-page-intro,
  .panel-head,
  .section-heading,
  .directory-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .reward-grid,
  .product-form,
  .executive-form,
  .edit-employee-form {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .code-form {
    grid-template-columns: 1fr;
  }

  .aircraft-panel {
    min-height: 380px;
  }

  .aircraft-panel .appreciation-label {
    font-size: 22px;
    margin-top: 92px;
  }

  .aircraft-panel h2 {
    font-size: 30px;
  }

  .brand-logo-lockup img {
    height: auto;
    max-width: 100%;
  }

  .search-field,
  .filter-field {
    min-width: 0;
    width: 100%;
  }
}
