:root {
  --bg: #0c111b;
  --surface: #151d2b;
  --border: #293548;
  --muted: #aab5c5;
  --soft: #7f8b9e;
  --accent: #7180df;
  --blue: #8b99ed;
  --green: #63bd93;
}
body { background: var(--bg); font-size: 14px; }
.topbar { min-height: 64px; background: #101722; border-color: var(--border); }
.brand { letter-spacing: .015em; }
.brand b { color: var(--blue); }
.brand-mark { color: white; border: 0; border-radius: 9px; background: #6574cf; }
.secure { color: var(--muted); text-decoration: none; }
.shell { max-width: 960px; padding-top: 48px; }
.hero { margin-bottom: 22px; }
.eyebrow, .step, .small-label { letter-spacing: .07em; }
.hero h1 { max-width: 620px; font-size: clamp(29px, 4vw, 36px); letter-spacing: -.035em; }
.hero p { font-size: 14px; }
.hero p b { color: #e2e7f0; font-family: ui-monospace, monospace; font-weight: 600; }
.panel { border-radius: 12px; box-shadow: none; }
.create-panel, .inbox-panel { padding: 20px; }
.panel-heading { margin-bottom: 14px; }
.panel-heading h2 { font-size: 17px; }
.clock-badge { border-color: var(--border); background: #192233; color: var(--muted); }
.clock-badge b { color: #e4e8f1; font-weight: 600; }
.prefix-wrap { border-radius: 8px; background: #0e1520; }
.prefix-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #7180df20; }
.domain-suffix { color: #9ca8bb; font-family: ui-monospace, monospace; font-size: 13px; }
.primary { border: 1px solid #7180df; border-radius: 8px; background: #6574cf; color: #fff; box-shadow: none; }
.primary:hover { border-color: #8794ea; background: #7583dc; }
.privacy-note { color: var(--muted); }
.privacy-note span { color: var(--blue); }
.quiet-btn, .copy-btn { border-radius: 8px; }
.quiet-btn.spinning { color: var(--blue); }
.inbox-panel { margin-top: 14px; }
.mailbox-card { border-color: var(--border); border-radius: 9px; background: #101722; }
.address { font-size: 16px; }
.access-row { font-size: 11px; }
.empty { min-height: 145px; border-color: #344156; border-radius: 9px; }
.empty-icon { color: var(--blue); }
.message { border-color: var(--border); border-radius: 9px; background: #111925; }
.message-meta .sender { color: #9eabe0; }
.how { gap: 10px; margin-top: 14px; }
.how > div { min-height: 92px; border-color: var(--border); border-radius: 10px; background: #111925; }
.how-number { background: #222b3d; color: #a9b4f3; }
footer { padding-top: 18px; font-size: 10px; }
:focus-visible { outline: 2px solid #8b99ed; outline-offset: 2px; }
@media (max-width: 650px) {
  .shell { padding-top: 30px; }
  .hero h1 { font-size: 29px; }
  .create-panel, .inbox-panel { padding: 15px; }
}
.create-row { grid-template-columns: minmax(150px, 1fr) auto auto; }
.random-btn { min-height: 49px; white-space: nowrap; }
.privacy-note b { color: #dce3ef; font-family: ui-monospace, monospace; font-size: 11px; overflow-wrap: anywhere; }
.mail-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #222c40; color: #b8c4ff; font-size: 11px; vertical-align: 2px; }
.message { overflow: hidden; padding: 0; }
.message-summary { display: block; width: 100%; padding: 14px 15px; border: 0; background: transparent; color: inherit; text-align: left; }
.message-summary:hover, .message-summary[aria-expanded="true"] { background: #182131; }
.message-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--soft); font-size: 11px; }
.message-top time { flex: 0 0 auto; }
.message-subject { display: block; margin-top: 6px; color: #f1f3f6; font-size: 14px; font-weight: 700; }
.message-preview { display: block; margin-top: 4px; overflow: hidden; color: #9ba6b8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.message-detail { padding: 0 15px 15px; border-top: 1px solid var(--border); }
.message-full-meta { display: grid; gap: 4px; padding: 12px 0; color: #8995a9; font-size: 11px; overflow-wrap: anywhere; }
.message-full-meta b { color: #dfe5ef; font-weight: 600; }
.message-detail pre { max-height: 480px; overflow: auto; margin: 0 0 12px; padding: 14px; border: 1px solid #293548; border-radius: 8px; background: #0e1520; color: #d4dbe7; font: 13px/1.65 ui-sans-serif,system-ui,sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: #101722; }
.reply-form label { display: block; margin-bottom: 7px; color: #dfe5ef; font-size: 12px; font-weight: 650; }
.reply-form textarea { display: block; width: 100%; min-height: 120px; resize: vertical; padding: 10px 12px; border: 1px solid #344156; border-radius: 8px; outline: 0; background: #0b111a; color: #eef1f6; font: inherit; font-size: 13px; }
.reply-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #7180df20; }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.reply-actions .primary { min-height: 38px; min-width: 100px; }
.reply-status { color: var(--green); font-size: 12px; }
.reply-status.is-error { color: #ffaaaa; }
@media(max-width: 760px) {
  .create-row { grid-template-columns: minmax(0, 1fr) auto; }
  .full-email-wrap { grid-column: 1 / -1; }
  .random-btn, .create-row > .primary { min-height: 45px; }
}
@media(max-width: 430px) {
  .random-btn { padding: 0 9px; font-size: 12px; }
  .create-row > .primary { min-width: 110px; }
  .message-summary { padding: 12px; }
  .message-top { align-items: flex-start; flex-direction: column; gap: 3px; }
}


/* ALEXBRIGHT mail ảo: giao diện nổi bật và mã xác minh dễ nhận ra */
:root {
  --bg: #080d19;
  --surface: #111a2b;
  --border: #2c3b5d;
  --muted: #bdc9df;
  --soft: #94a3bd;
  --accent: #786bff;
  --blue: #91a0ff;
  --green: #5ce0b0;
}
body {
  background: radial-gradient(ellipse at 50% -18%, #263b79 0, #10182a 42%, #080d19 78%) fixed;
}
.topbar {
  background: rgba(10, 16, 30, .94);
  border-bottom: 1px solid rgba(129, 151, 255, .28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.brand-mark {
  background: linear-gradient(135deg, #8c5cff, #4fa7ff) !important;
  box-shadow: 0 0 22px rgba(112, 111, 255, .38);
}
.shell { max-width: 1040px; padding-top: 42px; }
.hero { margin-bottom: 28px; }
.hero h1 {
  background: linear-gradient(100deg, #fff 10%, #b9c6ff 55%, #75d8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(101, 122, 255, .16));
}
.eyebrow, .step, .small-label { color: #9eafff; }
.panel {
  border: 1px solid rgba(143, 162, 255, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(23, 34, 57, .97), rgba(13, 21, 37, .98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.035);
}
.create-panel, .inbox-panel { padding: 22px; }
.panel-heading { margin-bottom: 18px; }
.panel-heading h2 { color: #f1f5ff; }
input, .input-wrap {
  border-color: #344769 !important;
  background: #0b1323 !important;
  box-shadow: inset 0 1px 5px rgba(0,0,0,.22);
}
button { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
button:hover {
  transform: translateY(-1px);
  border-color: #8291ff !important;
  box-shadow: 0 7px 20px rgba(103, 119, 255, .18);
}
#random-btn, #open-btn {
  border: 1px solid rgba(174, 181, 255, .28);
  background: linear-gradient(135deg, #7265f5, #4d8bea);
  color: white;
}
#open-btn { box-shadow: 0 7px 22px rgba(92, 113, 255, .24); }
.clock-badge, #inbox-panel .clock-badge { border-color: #394b71; background: #172440; color: #c5d0ff; }
#inbox-panel { border-top: 1px solid rgba(108, 147, 255, .22); }
#messages > * {
  border-color: rgba(133, 154, 202, .2) !important;
  background: linear-gradient(135deg, rgba(18, 29, 49, .98), rgba(14, 23, 39, .98)) !important;
  border-radius: 14px !important;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
#messages > *:hover {
  border-color: rgba(125, 145, 255, .62) !important;
  transform: translateY(-1px);
}
.message-subject { color: #f0f4ff; }
.message-preview { color: #aebbd3; }
.message-code-badge, .verification-code-inline {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 202, 91, .48);
  border-radius: 999px;
  background: rgba(255, 190, 58, .12);
  color: #ffd36d;
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.verification-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(77, 226, 180, .48);
  border-radius: 16px;
  background: radial-gradient(circle at 12% 0%, rgba(55, 206, 164, .18), transparent 52%), linear-gradient(135deg, #102a31, #102238);
  box-shadow: 0 10px 30px rgba(18, 197, 148, .12);
}
.verification-code-label { color: #9be8cf; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.verification-code-value { display: block; margin-top: 5px; color: #72f0c1; font: 800 clamp(24px, 5vw, 34px)/1.15 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-shadow: 0 0 22px rgba(75, 240, 188, .25); }
.copy-code-btn {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(102, 232, 190, .45);
  border-radius: 11px;
  background: rgba(43, 185, 146, .18);
  color: #b5ffe5;
  font-weight: 700;
  cursor: pointer;
}
.message-body mark { padding: 2px 6px; border-radius: 6px; background: rgba(255, 204, 76, .3); color: #ffe18a; font-weight: 800; }
@media (max-width: 640px) {
  .shell { padding: 24px 14px; }
  .create-panel, .inbox-panel { padding: 16px; }
  .verification-code-card { align-items: flex-start; flex-direction: column; }
  .copy-code-btn { width: 100%; }
}
