:host {
  --brand: #E33DCF;
  --blue: #030FAA;
  --focus-ring: 0 0 0 3px rgba(227, 61, 207, 0.16);
}

.lg-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(227, 61, 207, 0.2), rgba(0, 0, 0, 0.56) 42%);
  z-index: 9990;
  backdrop-filter: blur(5px);
}

.lg-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9995;
  padding: 16px;
}

.lg-modal-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  box-shadow: 0 30px 62px -16px rgba(0, 0, 0, 0.42);
  width: min(1200px, 98vw);
  overflow: hidden;
  animation: popUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, rgba(227, 61, 207, 0.1), rgba(255, 255, 255, 0.95) 72%);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;

  .icon-bg {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 15, 170, 0.1);
    color: var(--blue);
  }
}

.modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  select {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    &:focus {
      outline: none;
      border-color: var(--brand);
      box-shadow: var(--focus-ring);
    }
  }
}

.btn-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(17, 18, 20, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    border-color: rgba(227, 61, 207, 0.26);
    background: #fff;
    color: var(--brand);
    transform: translateY(-1px);
  }

  &:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
}

.modal-body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(248, 249, 251, 0.98), rgba(255, 255, 255, 0.98));
}

.annual-table {
  overflow-x: auto;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 12px;
  background: #fff;
}

.annual-table table {
  border-collapse: collapse;
  min-width: 1100px;
  width: 100%;
  font-size: 12px;
}

.annual-table th,
.annual-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 18, 20, 0.06);
  white-space: nowrap;
}

.annual-table thead th {
  background: #f8f9fb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  color: rgba(17, 18, 20, 0.6);
}

.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 2px 0 0 rgba(17, 18, 20, 0.04);
}

.col-1 { left: 0; min-width: 180px; }
.col-2 { left: 180px; min-width: 140px; }
.col-3 { left: 320px; min-width: 120px; }
.col-4 { left: 440px; min-width: 120px; text-align: right; }
.col-5 { left: 560px; min-width: 80px; }

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(180deg, #ffffff, rgba(248, 249, 251, 0.96));
}

.btn-primary {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #030faa;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0 14px;
  background: linear-gradient(135deg, #1543ff, #030faa);
  color: #fff;
  box-shadow: 0 10px 20px rgba(3, 15, 170, 0.24);
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(3, 15, 170, 0.28);
    filter: brightness(1.04);
  }

  &:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
}

.empty-state {
  text-align: center;
  padding: 24px;
  font-weight: 700;
  color: rgba(17, 18, 20, 0.6);
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
