/* ============================================================
   LSA Client Portal - Design system v2 (SCSS)
   ============================================================ */
:root {
  --blue: #0067b2;
  --blue-d: #00508a;
  --blue-l: #e8f2fa;
  --blue-m: #b8d8f0;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface2: #eef2f7;
  --border: #dde3ec;
  --border2: #c8d3e0;
  --text: #1a2332;
  --text2: #5a6878;
  --text3: #96a3b0;
  --orange: #e8700a;
  --green: #1e7a4a;
  --green-l: #ebf5ef;
  --green-m: #b8dfc9;
  --red: #b22a1e;
  --red-l: #fef0f0;
  --amber: #8a5a0a;
  --amber-l: #fdf3e4;
  --purple: #5a2a8a;
  --purple-l: #f2ebf9;
  --font: 'Poppins', sans-serif;
  --mono: 'DM Mono', monospace;
  --r: 8px;
  --r2: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow2: 0 4px 16px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

.lsa-portal {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 8rex;
}

.lsa-header {
  background: #fff;
  border-bottom: 3px solid var(--orange);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lsa-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 681px) {
  .lsa-header-inner {
    padding: 0 32px;
  }
}
.lsa-header-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.lsa-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lsa-site-nav {
  display: none;
  align-items: center;
}
@media (min-width: 681px) {
  .lsa-site-nav {
    display: flex;
  }
}
.lsa-site-nav a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lsa-site-nav a:hover {
  color: var(--blue);
  background: var(--blue-l);
}

.lsa-nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.lsa-nav-lang:hover {
  background: var(--blue-l);
  border-color: var(--blue-m);
}
.lsa-nav-lang img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
.lsa-nav-lang span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.lsa-avatar-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--surface2);
  transition: all 0.15s;
  position: relative;
}
.lsa-avatar-zone:hover {
  background: var(--blue-l);
  border-color: var(--blue-m);
}
.lsa-avatar-zone:hover .lsa-avatar-dropdown {
  display: block;
}

.lsa-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.lsa-avatar-info {
  line-height: 1.25;
}

.lsa-avatar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.lsa-avatar-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
}

.lsa-avatar-chevron {
  font-size: 10px;
  color: var(--text3);
  margin-left: 2px;
}

.lsa-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.lsa-avatar-dropdown a,
.lsa-avatar-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: background 0.12s;
}
.lsa-avatar-dropdown a:hover,
.lsa-avatar-dropdown button:hover {
  background: var(--blue-l);
  color: var(--blue);
}
.lsa-avatar-dropdown hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2px 0;
}

.lsa-dd-logout:hover {
  background: #fef0f0 !important;
  color: #c0392b !important;
}

.lsa-footer {
  background: #0067b2;
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}
.lsa-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 681px) {
  .lsa-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}
.lsa-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.lsa-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0;
}
.lsa-footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.lsa-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 32px;
  text-align: center;
}
.lsa-footer-bottom p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.lsa-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.lsa-footer-col p,
.lsa-footer-col address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}
.lsa-footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.lsa-footer-col a:hover {
  color: #fff;
}

.lsa-main {
  flex: 1;
}

.lsa-page {
  padding: 20px 16px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 681px) {
  .lsa-page {
    padding: 28px 32px;
  }
}

.lsa-page-header {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.lsa-page-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin: 0;
}
.lsa-page-header p {
  font-size: 13px;
  color: var(--text3);
  margin: 4px 0 0;
  font-family: var(--mono);
  font-weight: 500;
}

.lsa-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 22px;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color 0.15s;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.lsa-back:hover {
  color: var(--blue);
}

.lsa-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
}
.lsa-link--danger {
  color: var(--red);
}
.lsa-link--danger:hover {
  text-decoration: underline;
}

.lsa-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.lsa-empty {
  font-size: 13px;
  color: var(--text3);
  padding: 8px 0;
}

.lsa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.lsa-card:hover {
  box-shadow: var(--shadow2);
  border-color: var(--border2);
}
.lsa-card__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}
.lsa-card__footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lsa-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 681px) {
  .lsa-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lsa-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.lsa-metric:hover {
  box-shadow: var(--shadow2);
  border-color: var(--blue-m);
}
.lsa-metric:hover::before {
  opacity: 1;
}
.lsa-metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.2s;
}
.lsa-metric__label {
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lsa-metric__val {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lsa-metric__sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 5px;
  font-family: var(--mono);
}

.lsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.lsa-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.lsa-badge--blue {
  background: var(--blue-l);
  color: var(--blue);
}
.lsa-badge--amber {
  background: var(--amber-l);
  color: var(--amber);
}
.lsa-badge--orange {
  background: #fef0e8;
  color: #c05a10;
}
.lsa-badge--green {
  background: var(--green-l);
  color: var(--green);
}
.lsa-badge--purple {
  background: var(--purple-l);
  color: var(--purple);
}
.lsa-badge--gray, .lsa-badge--done {
  background: var(--surface2);
  color: var(--text3);
}

.lsa-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lsa-order-row {
  border-bottom: 1px solid var(--border);
}
.lsa-order-row:last-child {
  border-bottom: none;
}
.lsa-order-row__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font);
  border-radius: var(--r);
  transition: all 0.15s;
}
.lsa-order-row__link:hover {
  background: var(--blue-l);
  padding: 13px 12px;
  margin: 0 -12px;
  width: calc(100% + 24px);
}

.lsa-order-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--mono);
  text-align: left;
}

.lsa-order-qty {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  font-family: var(--mono);
  margin-top: 2px;
  text-align: left;
}

.lsa-order-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  text-align: left;
  font-weight: 500;
}

.lsa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

.lsa-page-btn {
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lsa-page-btn:hover {
  background: var(--blue-l);
  border-color: var(--blue-m);
  color: var(--blue);
}
.lsa-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.lsa-page-btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  cursor: default;
}

.lsa-page-ellipsis {
  font-size: 12px;
  color: var(--text3);
  padding: 0 4px;
  line-height: 28px;
}

.lsa-gantt-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: auto;
  max-height: 380px;
  background: var(--surface);
  position: relative;
  box-shadow: inset -20px 0 20px -12px rgba(0, 0, 0, 0.1);
}
@media (min-width: 681px) {
  .lsa-gantt-wrap {
    box-shadow: none;
  }
}

.lsa-gantt-inner {
  display: inline-flex;
  flex-direction: column;
  min-width: 100%;
}

.lsa-gantt-head {
  display: flex;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  border-bottom: 2px solid var(--border2);
  flex-shrink: 0;
}

.lsa-gantt-corner {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  background: var(--surface2);
  border-right: 1px solid var(--border2);
  z-index: 20;
  padding: 7px 8px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
}
@media (min-width: 681px) {
  .lsa-gantt-corner {
    width: 180px;
    min-width: 180px;
  }
}

.lsa-gantt-months {
  display: flex;
}

.lsa-gantt-month {
  width: 75px;
  min-width: 75px;
  flex-shrink: 0;
  padding: 7px 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border);
}
@media (min-width: 681px) {
  .lsa-gantt-month {
    width: 130px;
    min-width: 130px;
    font-size: 10px;
  }
}
.lsa-gantt-month:last-child {
  border-right: none;
}
.lsa-gantt-month--current {
  color: var(--blue);
  background: var(--blue-l);
}

.lsa-gantt-row {
  display: flex;
  height: 30px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lsa-gantt-row:last-child {
  border-bottom: none;
}

.lsa-gantt-lbl {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  background: var(--surface);
  border-right: 1px solid var(--border2);
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text2);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
@media (min-width: 681px) {
  .lsa-gantt-lbl {
    width: 180px;
    min-width: 180px;
    font-size: 10px;
  }
}
.lsa-gantt-lbl:hover {
  background: var(--blue-l);
  color: var(--blue);
}

.lsa-gantt-track {
  width: 900px;
  flex-shrink: 0;
  position: relative;
  height: 30px;
  background: var(--bg);
}
@media (min-width: 681px) {
  .lsa-gantt-track {
    width: 1560px;
  }
}

.lsa-gantt-bar {
  position: absolute;
  top: 7px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s, top 0.12s, height 0.12s;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.lsa-gantt-bar:hover {
  opacity: 1;
  top: 5px;
  height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lsa-gantt-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
  opacity: 0.6;
}

.lsa-gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e03030;
  opacity: 0.55;
  pointer-events: none;
  z-index: 4;
  border-radius: 1px;
}

.lsa-gantt-today-lbl {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 8px;
  font-weight: 800;
  color: #e03030;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.02em;
}

.lsa-cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lsa-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
}

.lsa-cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.lsa-stepper {
  display: flex;
  align-items: flex-start;
  padding: 6px 0;
}

.lsa-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.lsa-step:last-child .lsa-step-line {
  display: none;
}
.lsa-step-line {
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 1.5px;
  background: var(--border);
  z-index: 0;
}
.lsa-step-line--done {
  background: var(--green);
  opacity: 0.5;
}
.lsa-step__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text3);
  transition: all 0.2s;
}
.lsa-step__label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 9px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lsa-step--done .lsa-step__dot {
  background: var(--green-m);
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-l);
}
.lsa-step--done .lsa-step__label {
  color: var(--green);
}
.lsa-step--active .lsa-step__dot {
  background: var(--blue-l);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 103, 178, 0.1);
}
.lsa-step--active .lsa-step__label {
  color: var(--blue);
}

.lsa-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 681px) {
  .lsa-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lsa-info-label {
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.lsa-info-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--mono);
}
.lsa-info-val--plain {
  font-family: var(--font);
}

.lsa-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lsa-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.lsa-doc-row:last-child {
  border-bottom: none;
}

.lsa-doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.lsa-doc-info {
  flex: 1;
  min-width: 0;
}

.lsa-doc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lsa-doc-meta {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
  margin-top: 2px;
}

.lsa-btn-dl {
  font-size: 11px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  border-radius: var(--r);
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
  letter-spacing: 0.02em;
}
.lsa-btn-dl:hover {
  background: var(--blue-m);
}

.lsa-btn-track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: var(--r);
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 103, 178, 0.28);
  letter-spacing: 0.01em;
}
.lsa-btn-track:hover {
  background: var(--blue-d);
  box-shadow: 0 4px 14px rgba(0, 103, 178, 0.35);
  transform: translateY(-1px);
}
.lsa-btn-track:disabled {
  background: var(--blue-l);
  color: var(--blue-m);
  cursor: default;
  box-shadow: none;
  transform: none;
}

.lsa-copy-hint {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.lsa-copy-hint--show {
  opacity: 1;
}

.lsa-btn-ghost {
  font-size: 12px;
  font-family: var(--font);
  color: var(--text2);
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.lsa-btn-ghost:hover {
  background: var(--blue-l);
  color: var(--blue);
  border-color: var(--blue-m);
}

.lsa-btn--primary {
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 103, 178, 0.28);
}
.lsa-btn--primary:hover {
  background: var(--blue-d);
  box-shadow: 0 4px 14px rgba(0, 103, 178, 0.35);
  transform: translateY(-1px);
}

.lsa-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0;
}
@media (min-width: 681px) {
  .lsa-welcome {
    flex-direction: row;
    justify-content: space-between;
  }
}
.lsa-welcome__name {
  flex-grow: 1;
  text-align: left;
}
.lsa-welcome__actions {
  display: flex;
  text-align: center;
  justify-content: center;
  gap: 8px;
}
@media (min-width: 681px) {
  .lsa-welcome__actions {
    text-align: right;
    justify-content: flex-end;
  }
}
.lsa-welcome__action--logout {
  display: none;
}
@media (min-width: 681px) {
  .lsa-welcome__action--logout {
    display: inline;
  }
}

.lsa-logout-mobile {
  display: block;
  margin: 16px 0;
  text-align: center;
}
@media (min-width: 681px) {
  .lsa-logout-mobile {
    display: none;
  }
}

body.lsa-modal-open {
  overflow: hidden;
}

#lsa-tracking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsa-tracking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.lsa-tracking-modal__box {
  position: relative;
  z-index: 1;
  width: min(960px, 100vw - 32px);
  height: min(680px, 100dvh - 48px);
  background: var(--surface);
  border-radius: var(--r2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lsa-tracking-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text2);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.lsa-tracking-modal__close:hover {
  background: var(--border2);
  color: var(--text);
}

.lsa-tracking-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

.lsa-tracking-embed {
  margin: -4px 0 -8px;
}

.lsa-tracking-embed__actions {
  padding: 0 0 12px;
}

.lsa-tracking-embed__frame {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
  border-radius: 0 0 var(--r2) var(--r2);
}
@media (max-width: 680px) {
  .lsa-tracking-embed__frame {
    height: 420px;
  }
}

.lsa-login-bg {
  flex: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.lsa-login-bg::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 103, 178, 0.07) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  pointer-events: none;
}

.lsa-login-box {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.lsa-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.lsa-login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  margin-top: 18px;
}

.lsa-login-sub {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
}

.lsa-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow2);
}

.lsa-field {
  margin-bottom: 18px;
}
.lsa-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}
.lsa-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px !important;
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  outline: none;
  transition: all 0.2s;
  font-weight: 500;
}
.lsa-field input::placeholder {
  color: var(--text3);
}
.lsa-field input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px var(--blue-l);
}

.lsa-forgot {
  text-align: right;
  margin-bottom: 22px;
}
.lsa-forgot a {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.lsa-login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}
.lsa-login-footer a {
  color: var(--blue);
  font-weight: 700;
}

.lsa-alert {
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 14px;
}
.lsa-alert--error {
  background: #fcebeb;
  color: #791f1f;
  border: 1px solid rgba(162, 45, 45, 0.2);
}
