:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-dark: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5rem;
}

.container {
  width: 100%;
  max-width: 900px;
  padding: 2rem;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.header {
  margin-bottom: 2rem;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.email-display:hover {
  border-color: var(--primary);
}

.email-display .address {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-main);
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mailbox {
  margin-top: 2rem;
}

.mailbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.message-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.message-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.message-item.expanded {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  cursor: default;
}

.message-item .from {
  font-weight: 700;
  color: #818cf8;
}

.message-item .subject {
  font-weight: 500;
  margin-top: 0.25rem;
}

.message-item .date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  float: right;
}

.message-body {
  margin-top: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
}

.message-body img {
  max-width: 100%;
  height: auto;
}
