.tempmail-page {
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 20%, #1b2b5a, #0b1226 45%, #070a18 70%);
}

.tempmail-page::before,
.tempmail-page::after {
  content: "";
  position: fixed;
  inset: -20% 0 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  filter: blur(40px);
  background: radial-gradient(circle at 20% 20%, rgba(106, 167, 255, 0.35), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(56, 210, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(106, 255, 182, 0.2), transparent 60%);
  animation: tempmail-drift 18s ease-in-out infinite;
}

.tempmail-page::after {
  opacity: 0.35;
  filter: blur(60px);
  animation: tempmail-drift 26s ease-in-out infinite reverse;
}

.tempmail-page .header,
.tempmail-page main {
  position: relative;
  z-index: 1;
}
.tempmail-app {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.tempmail-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(6, 12, 28, 0.35);
}

.tempmail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tempmail-count {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(106, 167, 255, 0.15);
  color: #cfe2ff;
  font-weight: 700;
}

.tempmail-count--pulse {
  background: rgba(106, 255, 182, 0.2);
  color: #b9ffd9;
  box-shadow: 0 0 0 6px rgba(106, 255, 182, 0.12);
  transition: all 0.2s ease;
}

.tempmail-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tempmail-address {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 14px;
  color: #cfe2ff;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.tempmail-address-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
}

.tempmail-copy {
  height: 40px;
  padding: 8px 16px;
}

.tempmail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tempmail-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tempmail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.tempmail-note {
  margin-top: 10px;
  text-align: center;
}

.tempmail-messages {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tempmail-gear {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(106, 167, 255, 0.35);
  background: rgba(8, 14, 30, 0.6);
  color: #cfe2ff;
  font-size: 13px;
}

.tempmail-gear__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(106, 167, 255, 0.35);
  border-top-color: #6aa7ff;
  animation: tempmail-spin 1.1s linear infinite;
}

.tempmail-gear__text {
  letter-spacing: 0.01em;
}

.tempmail-gear.is-hidden {
  display: none;
}

.tempmail-message {
  text-align: left;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 15, 30, 0.6);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tempmail-message:hover,
.tempmail-message.is-open {
  transform: translateY(-2px);
  border-color: rgba(106, 167, 255, 0.35);
  box-shadow: 0 12px 24px rgba(5, 10, 25, 0.45);
}

.tempmail-message__header {
  width: 100%;
  padding: 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
}

.tempmail-message__subject {
  font-weight: 700;
}

.tempmail-message__meta {
  font-size: 12px;
  color: var(--muted);
}

.tempmail-message__chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid #6aa7ff;
  border-bottom: 2px solid #6aa7ff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.tempmail-message.is-open .tempmail-message__chevron {
  transform: rotate(225deg);
}

.tempmail-empty {
  font-size: 13px;
  color: var(--muted);
}

.tempmail-message__details {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 22, 0.6);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.tempmail-message__loading {
  font-size: 13px;
  color: var(--muted);
}

.tempmail-message-view__subject {
  font-weight: 700;
  margin-bottom: 6px;
}

.tempmail-message-view__meta {
  font-size: 12px;
  color: var(--muted);
}

.tempmail-message-view__body {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: "Trebuchet MS", "Segoe UI", "Tahoma", Arial, sans-serif;
  color: #cfe2ff;
}

.tempmail-api {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.tempmail-api__layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.tempmail-api__tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tempmail-api__tab {
  font-size: 13px;
}

.tempmail-api__tab.is-active {
  border-color: rgba(106, 167, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(106, 167, 255, 0.15);
}

.tempmail-api__content h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.tempmail-api__content pre {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  color: #cfe2ff;
}

.tempmail-api__code {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(8, 12, 24, 0.7);
  box-shadow: inset 0 0 0 1px rgba(106, 167, 255, 0.08);
  align-self: start;
}

.tempmail-api__snippet pre {
  margin: 0;
}

@media (max-width: 900px) {
  .tempmail-api__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tempmail-address-row {
    flex-direction: column;
  }
}

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