html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

#email-address-banner,
#countdown-banner {
    width: 100vw;
    box-sizing: border-box;
    display: block;
    position: relative;
    left: 0;
    right: 0;
    text-align: center;
    background: black;
    color: #fff;
    font-size: 1.2em;
    padding: 0.5em 0;
    z-index: 1000;
}

#countdown-banner {
    position: fixed;
    top: 0;
}

#email-address-banner {
    position: fixed;
    bottom: 0;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
}

.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: -1;
}
.bg-video::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
    pointer-events: none;
}

.container {
    background: rgb(18 18 18 / 75%);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: calc(90% - 20px);
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.container,
#email-address-banner,
#countdown-banner,
#copy-confirm {
    background: rgba(18, 18, 18, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

h1 {
    font-size: 3.75em;
    margin-bottom: 0;
}

h2 {
    margin-top: 0;
}

button {
    background: linear-gradient(90deg, #00ddff 0%, #00ffa3 100%);
    color: #111;
    border-radius: 24px;
    border: none;
    margin: 10px 0;
    padding: 12px 32px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 12px #00ddff44;
    transition: transform 0.1s, box-shadow 0.1s;
}
button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 24px #00ffa344;
}

input {
    background-color: #333333;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}

a {
    display: inline-block;
    text-decoration: none;
    color: #00ddff;
}

.email {
    background: rgb(18 18 18 / 75%);
    padding: 10px;
    color: #ebebeb;
    padding: 10px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
    width: calc(90% - 20px);
    max-width: 600px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.7s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: translateY(0);}
}

.email h3 {
    margin: 0 0 10px;
}

.email p {
    margin: 5px 0;
}

.info-box {
    background: #e6ffe6;
    color: #256029;
    border: 1px solid #b2d8b2;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 1em;
}

dialog.info-dialog {
    border: none;
    border-radius: 8px;
    padding: 1em 2em;
    background: #e6ffe6;
    color: #256029;
    font-size: 1em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: calc(320px - 4em);
    margin: auto;
}

dialog.info-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.error-message {
    background: rgba(255, 32, 32, 0.92);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px #ff174488;
    padding: 1.2em 1.5em;
    margin: 2em auto;
    max-width: 420px;
    font-size: 1.2em;
    display: block;
    align-items: center;
    animation: fadeIn 0.7s;
    text-align: center;
    width: calc(90% - 3em);
}
.error-main {
    display: flex;
    align-items: center;
    gap: 0.7em;
    justify-content: center;
}
.error-icon {
    font-size: 2em;
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #ff1744);
}
.error-text {
    display: inline-block;
    line-height: 1.5;
}
.error-home-btn {
    display: inline-block;
    margin-top: 1.2em;
    padding: 0.5em 1.5em;
    background: linear-gradient(90deg, #00ddff 0%, #00ffa3 100%);
    color: #111;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 12px #00ddff44;
    transition: background 0.2s, color 0.2s;
}
.error-home-btn:hover {
    background: linear-gradient(90deg, #ff1744 0%, #ff8a65 100%);
    color: #fff;
}

.neon-red {
    color: #ff1744;
    text-shadow:
        0 0 8px #ff1744,
        0 0 16px #ff1744,
        0 0 32px #ff1744,
        0 0 64px #ff1744;
    font-weight: bold;
    animation: neonPulse 1.2s infinite alternate;
}
@keyframes neonPulse {
    from { text-shadow: 0 0 8px #ff1744, 0 0 16px #ff1744; }
    to   { text-shadow: 0 0 32px #ff1744, 0 0 64px #ff1744; }
}

#copy-confirm {
    color:#00ffa3; 
    font-size: 1.1em;
    font-weight:bold; 
    margin-bottom:0.3em;
    text-shadow: 0 0 8px #00ffa3, 0 0 16px #00ffa3;
    transition: opacity 0.2s;
    position: absolute;
    bottom: 2.4em;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    padding: 0.75em 1.5em;
}

#copy-email {
    margin-top: 0;
}

.email-card {
    background: rgba(30, 30, 40, 0.92);
    border-radius: 18px;
    box-shadow: 0 6px 32px #00ffa344, 0 1.5px 8px #000a;
    margin: 2em auto;
    max-width: 600px;
    padding: 1.2em 0.4em 0.8em 0.4em;
    color: #f3f3f3;
    position: relative;
    animation: fadeIn 0.7s;
    border: 1.5px solid rgba(0,255,163,0.08);
    width: calc(98% - 1em);
}

.email-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2em;
    gap: 1em;
}

.email-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00ffa3 0%, #00ddff 100%);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 0 12px #00ffa344;
    flex-shrink: 0;
}

.email-meta {
    flex: 1;
    min-width: 0;
}

.email-from {
    font-weight: bold;
    font-size: 1.1em;
    color: #00ffa3;
    text-shadow: 0 0 4px #00ffa3aa;
    margin-bottom: 0.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-date {
    font-size: 0.95em;
    color: #aaa;
    margin-bottom: 0.2em;
}

.email-subject {
    font-size: 1.15em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.2em;
    text-shadow: 0 0 6px #00ddff44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-body {
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    padding: 0.4em;
    margin-bottom: 1em;
    font-size: 1.08em;
    color: #f3f3f3;
    word-break: break-word;
    box-shadow: 0 1px 8px #00ffa322;
}
.email-body.html {
    /* Optional: HTML-Mails etwas anders stylen */
    background: rgba(0,0,0,0.12);
}
.email-body .quote {
    color: #00ffa3;
    border-left: 2px solid #00ffa3;
    padding-left: 0.7em;
    margin-left: 0.5em;
    display: block;
    font-style: italic;
}

.email-attachments {
    margin-top: 1em;
    font-size: 0.98em;
}
.email-attachments ul {
    padding-left: 1.2em;
    margin: 0.3em 0 0 0;
}
.email-attachments li {
    margin-bottom: 0.2em;
}
.email-attachments a {
    color: #00ffa3;
    text-decoration: underline dotted;
    font-weight: bold;
}
.mail-html-body {
    background: #fff;
    color: #111;
    border-radius: 8px;
    padding: 0.4em;
    margin-bottom: 1em;
    overflow-x: auto;
    max-width: 100%;
    font-size: 1em;
    box-shadow: 0 1px 8px #00ffa322;
    /* Optional: für bessere Lesbarkeit */
    line-height: 1.5;
    word-break: break-word;
}
.mail-html-body table {
    background: #fff !important;
    color: #111 !important;
}

.no-emails-hint {
    font-size: 1.1em;
    color: #ccc;
    margin: 2em 0;
    line-height: 1.4;
    text-align: center;
}

#xmr-price {
    display: inline-block;
    margin-bottom: 2em;
    color: #e6e6e6;
}

.tos {
    font-size: small;
    margin-top: 1em;
}

@media (max-width: 600px) {
    #email-address-banner,
    #countdown-banner {
        font-size: 1em;
        padding: 0.7em 0.2em;
        word-break: break-all;
    }
    .container {
        padding: 1em;
    }
    h1 {
        font-size: 3.25em;
    }
    h2 {
        font-size: 1.3em;
    }
}