:root { color-scheme: dark; --background: #08090c; --panel: rgba(18,20,27,.78); --panel-strong: #11131a; --border: rgba(113,125,150,.2); --muted: #9ca3af; --blue: #3b82f6; --blue-light: #60a5fa; --pointer-x: 50vw; --pointer-y: 20vh; }
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; overflow-x: hidden; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; background-color: var(--background); background-image: radial-gradient(circle at 50% -8rem, rgba(37,99,235,.16), transparent 36rem), radial-gradient(rgba(96,165,250,.045) 1px, transparent 1px); background-size: auto, 25px 25px; }
body::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(32rem circle at var(--pointer-x) var(--pointer-y), rgba(59,130,246,.055), transparent 52%); }
body > main, body > footer { position: relative; z-index: 1; }
main:has(> #loginView:not(.hidden)), main:has(> #adminLogin:not(.hidden)) { display: grid; align-items: center; padding-top: 2rem !important; padding-bottom: 2rem !important; }
#loginView:not(.hidden), #adminLogin:not(.hidden) { align-self: center; }
button, input { font: inherit; }
.ambient-canvas { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .78; }
.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(96,165,250,.12); background: rgba(8,9,12,.76); box-shadow: 0 1px 30px rgba(0,0,0,.25); backdrop-filter: blur(18px) saturate(130%); animation: header-in .55s cubic-bezier(.22,1,.36,1) both; }
.site-header::after { content: ""; position: absolute; right: 18%; bottom: -1px; left: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,.35), transparent); }
.brand { display: flex; align-items: center; gap: .65rem; color: #f8fafc; text-decoration: none; }
.brand-name { position: relative; font-size: .8rem; font-weight: 700; letter-spacing: .035em; }.brand-name::after { content: ""; position: absolute; top: .05rem; right: -.4rem; width: .22rem; height: .22rem; border-radius: 999px; background: var(--blue-light); box-shadow: 0 0 9px rgba(96,165,250,.7); }
.brand-badge { border: 1px solid rgba(96,165,250,.2); border-radius: 999px; background: rgba(37,99,235,.07); padding: .22rem .5rem; color: #94a3b8; font-size: .62rem; font-weight: 500; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: .45rem; color: #7d8594; font-size: .7rem; }.status-badge i { width: .4rem; height: .4rem; border-radius: 999px; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.08); animation: status-pulse 2.8s ease-in-out infinite; }
.eyebrow { color: #60a5fa; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.panel, .glass { position: relative; border: 1px solid var(--border); border-radius: .55rem; background: linear-gradient(145deg, rgba(21,24,33,.86), rgba(13,15,21,.78)); box-shadow: 0 20px 70px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(14px); transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.panel:hover, .glass:hover { border-color: rgba(96,165,250,.27); box-shadow: 0 24px 80px rgba(0,0,0,.26), 0 0 0 1px rgba(59,130,246,.03); transform: translateY(-1px); }
.field-label { display: block; margin-bottom: .5rem; color: #9ca3af; font-size: .75rem; font-weight: 500; }
.field { width: 100%; height: 2.65rem; border: 1px solid rgba(113,125,150,.28); border-radius: .4rem; background: rgba(7,9,13,.76); padding: 0 .8rem; color: #f4f4f5; outline: none; transition: border-color .22s, box-shadow .22s, background .22s; }
.field::placeholder { color: #4b5563; }.field:hover { border-color: rgba(96,165,250,.35); background: rgba(10,13,20,.9); }.field:focus { border-color: var(--blue); background: #090c13; box-shadow: 0 0 0 3px rgba(59,130,246,.13), 0 0 24px rgba(37,99,235,.07); }
.mono-input, .account-address { font-family: "JetBrains Mono", ui-monospace, monospace; }.account-address { color: #bfdbfe; font-size: .88em; font-weight: 500; overflow-wrap: anywhere; }
.primary-button, .secondary-button, .ghost-button { position: relative; display: inline-flex; min-height: 2.4rem; align-items: center; justify-content: center; overflow: hidden; border-radius: .4rem; padding: .55rem .9rem; font-size: .78rem; font-weight: 600; transition: background .22s, border-color .22s, color .22s, transform .22s, box-shadow .22s; }
.primary-button { border: 1px solid #3b82f6; background: linear-gradient(180deg,#3b82f6,#2563eb); color: #fff; box-shadow: 0 8px 26px rgba(37,99,235,.2), inset 0 1px rgba(255,255,255,.17); }.primary-button::after { content: ""; position: absolute; top: -80%; bottom: -80%; left: -35%; width: 22%; transform: rotate(18deg); background: rgba(255,255,255,.2); filter: blur(5px); transition: left .55s ease; }.primary-button:hover { border-color: #60a5fa; box-shadow: 0 12px 34px rgba(37,99,235,.28), inset 0 1px rgba(255,255,255,.2); transform: translateY(-1px); }.primary-button:hover::after { left: 115%; }.primary-button:active { transform: translateY(0); }
.secondary-button { border: 1px solid rgba(96,165,250,.26); background: rgba(37,99,235,.09); color: #bfdbfe; }.secondary-button:hover { border-color: rgba(96,165,250,.48); background: rgba(37,99,235,.16); box-shadow: 0 8px 26px rgba(37,99,235,.09); transform: translateY(-1px); }
.ghost-button { border: 1px solid rgba(113,125,150,.2); background: rgba(12,14,20,.32); color: #9ca3af; }.ghost-button:hover { border-color: rgba(96,165,250,.3); background: rgba(30,41,59,.35); color: #e5e7eb; }
button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
.error-box, .notice-error { border: 1px solid rgba(248,113,113,.25); border-radius: .4rem; background: rgba(127,29,29,.12); padding: .75rem .85rem; color: #fca5a5; font-size: .78rem; animation: fade-up .28s ease both; }
.notice-success { border: 1px solid rgba(52,211,153,.2); border-radius: .4rem; background: rgba(6,78,59,.12); padding: .75rem .85rem; color: #6ee7b7; font-size: .78rem; animation: fade-up .28s ease both; }
.spinner { width: 1.4rem; height: 1.4rem; border: 2px solid #273244; border-top-color: #60a5fa; border-radius: 999px; box-shadow: 0 0 18px rgba(59,130,246,.18); animation: spin .7s linear infinite; }
.empty-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid rgba(96,165,250,.18); border-radius: .5rem; background: rgba(37,99,235,.05); color: #60a5fa; }.empty-icon svg { width: 1.1rem; }
#loginView > div, #adminLogin > div { animation: fade-up .62s .05s cubic-bezier(.22,1,.36,1) both; } #loginView > form, #adminLogin > form { animation: fade-up .68s .13s cubic-bezier(.22,1,.36,1) both; } #mailView, #adminPanel { animation: fade-up .48s cubic-bezier(.22,1,.36,1) both; }
.inbox-list { overflow: hidden; border: 1px solid var(--border); border-radius: .6rem; background: rgba(12,14,20,.7); box-shadow: 0 22px 70px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.02); backdrop-filter: blur(12px); }
.inbox-list:empty { display: none; }
.message-card { position: relative; background: rgba(17,20,28,.4); overflow: hidden; animation: fade-up .42s cubic-bezier(.22,1,.36,1) both; transition: background .25s, box-shadow .25s; }.message-card + .message-card { border-top: 1px solid rgba(113,125,150,.14); }.message-card::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 2px; transform: scaleY(0); background: linear-gradient(#60a5fa,#2563eb); box-shadow: 0 0 14px rgba(59,130,246,.45); transition: transform .25s ease; }.message-card:hover, .message-card.is-open { background: linear-gradient(90deg,rgba(37,99,235,.07),rgba(20,24,34,.78) 36%); }.message-card:hover::before, .message-card.is-open::before { transform: scaleY(1); }
.message-card:nth-child(2) { animation-delay: .035s; }.message-card:nth-child(3) { animation-delay: .07s; }.message-card:nth-child(4) { animation-delay: .105s; }.message-card:nth-child(5) { animation-delay: .14s; }
.message-toggle { display: grid; width: 100%; min-height: 4.8rem; grid-template-columns: 2.4rem minmax(0,1fr) auto; align-items: center; gap: .9rem; padding: .8rem 1rem; text-align: left; outline: none; }.message-toggle:focus-visible { box-shadow: inset 0 0 0 2px rgba(96,165,250,.65); }.message-toggle[aria-expanded="true"] { background: rgba(37,99,235,.035); }
.message-sender-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid rgba(96,165,250,.16); border-radius: .5rem; background: linear-gradient(145deg,rgba(37,99,235,.12),rgba(30,41,59,.22)); color: #7daef7; transition: border-color .25s, background .25s, color .25s, transform .25s; }.message-sender-icon svg { width: 1rem; height: 1rem; }.message-card:hover .message-sender-icon, .message-card.is-open .message-sender-icon { border-color: rgba(96,165,250,.34); background: rgba(37,99,235,.17); color: #bfdbfe; transform: translateY(-1px); }
.message-info { display: flex; min-width: 0; flex-direction: column; gap: .28rem; }.message-subject { overflow: hidden; color: #e5e7eb; font-size: .83rem; font-weight: 600; line-height: 1.25rem; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }.message-card:hover .message-subject, .message-card.is-open .message-subject { color: #fff; }.message-sender { overflow: hidden; color: #6f7786; font-size: .72rem; line-height: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.message-meta { display: flex; align-items: center; gap: .85rem; padding-left: 1rem; }.message-date { color: #596273; font-size: .67rem; white-space: nowrap; transition: color .2s; }.message-card:hover .message-date { color: #8290a5; }.message-chevron { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border: 1px solid rgba(113,125,150,.14); border-radius: .38rem; color: #596273; font-size: 1.05rem; line-height: 1; transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .2s, color .2s, background .2s; }.message-card:hover .message-chevron { border-color: rgba(96,165,250,.26); background: rgba(37,99,235,.08); color: #93c5fd; }.message-toggle[aria-expanded="true"] .message-chevron { transform: rotate(90deg); border-color: rgba(96,165,250,.35); background: rgba(37,99,235,.13); color: #bfdbfe; }
.message-content { border-top: 1px solid rgba(96,165,250,.12); background: rgba(7,9,13,.88); padding: 1rem; color: #d4d4d8; overflow-wrap: anywhere; animation: content-open .3s ease both; }
.email-preview { overflow: hidden; border: 1px solid rgba(113,125,150,.22); border-radius: .5rem; background: #090b10; box-shadow: 0 16px 45px rgba(0,0,0,.17); }
.email-preview-toolbar { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(96,165,250,.12); padding: .55rem .75rem; background: linear-gradient(90deg, rgba(21,25,35,.95), rgba(15,18,26,.95)); }
.email-preview-label { display: inline-flex; align-items: center; gap: .5rem; color: #7d8594; font-size: .68rem; font-weight: 500; }.email-preview-label::before { content: ""; width: .42rem; height: .42rem; border-radius: 999px; background: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,.55); animation: status-pulse 3s ease-in-out infinite; }
.email-preview-expand { border: 1px solid rgba(96,165,250,.22); border-radius: .35rem; background: rgba(37,99,235,.07); padding: .3rem .55rem; color: #aebad0; font-size: .67rem; font-weight: 500; transition: .2s; }.email-preview-expand:hover { border-color: rgba(96,165,250,.45); background: rgba(37,99,235,.14); color: #fff; }
.email-preview-viewport { max-height: 34rem; overflow: auto; padding: 1.25rem; background: #0b0e14; scrollbar-color: #31405a transparent; scrollbar-width: thin; transition: max-height .45s cubic-bezier(.22,1,.36,1); }
.email-preview.is-expanded .email-preview-viewport { max-height: none; }
.message-html { width: min(100%,760px); margin: 0 auto; border: 1px solid rgba(113,125,150,.2); border-radius: .4rem; background: #111827; padding: 1.5rem; color: #e2e8f0; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.message-html a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }.message-html img { max-width: 100% !important; height: auto !important; }.message-html table { max-width: 100% !important; }.message-html td { overflow-wrap: anywhere; }
.admin-email { font-family: "JetBrains Mono", ui-monospace, monospace; color: #c7d2fe; font-size: .75rem; }.admin-date { color: #7d8594; }.danger-button { border: 1px solid rgba(113,125,150,.23); border-radius: .375rem; padding: .42rem .65rem; color: #9ca3af; font-size: .7rem; font-weight: 500; transition: .2s; }.danger-button:hover { border-color: rgba(248,113,113,.35); background: rgba(127,29,29,.12); color: #fca5a5; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes header-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes status-pulse { 0%,100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@media (max-width: 640px) { .brand-badge, .status-badge { display: none; } .message-toggle { min-height: 4.55rem; grid-template-columns: 2.15rem minmax(0,1fr); gap: .7rem; padding: .75rem; }.message-sender-icon { width: 2.15rem; height: 2.15rem; }.message-meta { grid-column: 2; justify-content: space-between; padding: 0; }.message-date { font-size: .62rem; }.message-chevron { position: absolute; right: .7rem; width: 1.5rem; height: 1.5rem; }.message-info { padding-right: 1.7rem; }.message-content { padding: .5rem; } .email-preview-toolbar { align-items: flex-start; gap: .6rem; }.email-preview-label { display: none; }.email-preview-viewport { max-height: 28rem; padding: .5rem; } .message-html { border: 0; padding: .75rem; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } .ambient-canvas { opacity: .42; } }
