* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #f3f6ff;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 35%),
    linear-gradient(180deg, #0b1020 0%, #0f172a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.container {
  width: 100%;
  max-width: 1120px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
}

.logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.panel {
  width: 100%;
  background: rgba(18, 25, 44, 0.88);
  border: 1px solid rgba(102, 126, 234, 0.22);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.hero-card {
  max-width: 760px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-size: 13px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.hero-text {
  margin: 0 auto;
  max-width: 620px;
  color: #b9c4e3;
  font-size: 16px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #4f7cff 0%, #3f67dd 100%);
  color: white;
  border-color: rgba(255,255,255,0.08);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: #e5ecff;
  border-color: rgba(255,255,255,0.12);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 6px;
  color: #9fb0d9;
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 22px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 2px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
}

.profile-email {
  margin-top: 4px;
  color: #aebadb;
  font-size: 14px;
}

.emails-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mail-item {
  background: linear-gradient(180deg, rgba(34, 45, 74, 0.9) 0%, rgba(22, 29, 48, 0.95) 100%);
  border: 1px solid rgba(122, 146, 219, 0.18);
  border-radius: 18px;
  padding: 16px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.mail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 146, 219, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.mail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.mail-subject {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fbff;
}

.mail-date {
  flex-shrink: 0;
  color: #94a3c7;
  font-size: 12px;
  text-align: right;
}

.mail-from {
  margin-bottom: 10px;
  color: #c3cfec;
  font-size: 14px;
}

.mail-snippet {
  color: #9ba9ca;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-text {
  color: #aebadb;
}

@media (max-width: 700px) {
  .page-shell {
    padding: 18px 12px;
  }

  .hero-title {
    font-size: 34px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mail-top {
    flex-direction: column;
  }

  .mail-date {
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }
}
