/* Monosend Unsubscribe — Dark Theme */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter Regular'), local('Inter-Regular');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'), local('Inter-Medium');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'), local('Inter-SemiBold');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'), local('Inter-Bold');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #ffffff;
  background: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
}

/* States */
.state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo mark */
.logo-mark {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0.5;
}

.logo-mark svg {
  width: 40px;
  height: 40px;
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
  max-width: 400px;
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Groups list */
.groups-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0 28px;
}

.group-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.15s ease;
}

.group-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.group-item:hover {
  opacity: 0.85;
}

/* Custom checkbox */
.group-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.group-checkbox:checked {
  background: #4586ff;
  border-color: #4586ff;
}

.group-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.group-checkbox:focus-visible {
  outline: 2px solid #4586ff;
  outline-offset: 2px;
}

/* Group text */
.group-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.group-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

.group-description {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: #2a2a2a;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #3a3a3a;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Or divider */
.or-divider {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  margin: 16px 0;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.footer-logo {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 480px) {
  .page {
    padding: 32px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .btn {
    max-width: 100%;
  }
}
