/* Smooth: email verification popup + Settings status line (js/smooth-email.js). Same look as the maintenance
   notice (css/smooth-maintenance.css): navy panel, gold border, MG VAG. Over everything, also the login screen. */
#mg-email{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:12px;box-sizing:border-box;
  background:rgba(5,9,22,.78);font-family:"MG VAG","Trebuchet MS",Arial,sans-serif;color:#fff;animation:me-fade .25s ease-out;overflow:auto}
#mg-email[hidden],#mg-email [hidden]{display:none!important}
@keyframes me-fade{from{opacity:0}to{opacity:1}}
#mg-email .me-card{position:relative;width:min(400px,100%);box-sizing:border-box;padding:20px 22px 16px;
  background:linear-gradient(180deg,#1d3150 0%,#14243d 60%,#0f1c31 100%);border:2px solid #f5b301;border-radius:14px;
  box-shadow:0 6px 24px rgba(0,0,0,.6);text-align:center;font-size:14px;line-height:1.45;animation:me-in .28s ease-out}
@keyframes me-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
#mg-email .me-head{display:flex;align-items:center;justify-content:center;gap:9px}
#mg-email .me-ic{flex:none;width:24px;height:24px;border-radius:50%;background:#f5b301 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314243d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/15px no-repeat}
#mg-email h2{margin:0;font:19px/1.2 "MG VAG Bold","MG VAG",Arial,sans-serif;color:#ffcc33;text-shadow:0 2px 0 #3a220c}
#mg-email .me-text{margin:10px 0 0;color:#e6eefc;overflow-wrap:anywhere}
#mg-email .me-text b{color:#fff}
#mg-email .me-step{display:flex;flex-direction:column;gap:10px;margin-top:14px}
#mg-email label{display:flex;flex-direction:column;gap:5px;text-align:left;font-size:12.5px;color:#b9c9e8}
#mg-email input{box-sizing:border-box;width:100%;min-height:42px;padding:8px 12px;border:1px solid rgba(127,180,255,.35);border-radius:9px;
  background:#0c1629;color:#fff;font:16px "MG VAG","Trebuchet MS",Arial,sans-serif;outline:none}
#mg-email input:focus{border-color:#f5b301;box-shadow:0 0 0 3px rgba(245,179,1,.25)}
#mg-email .me-code{text-align:center;font-size:26px;letter-spacing:10px;padding-left:22px;font-variant-numeric:tabular-nums}
#mg-email .me-code::placeholder{color:#3a4d6e}
#mg-email .me-primary{min-height:42px;padding:9px 18px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffd34d,#f5b301);color:#14243d;
  font:15px "MG VAG Bold","MG VAG",Arial,sans-serif;cursor:pointer;box-shadow:0 2px 0 #9a6b00}
#mg-email .me-primary:hover{filter:brightness(1.07)}
#mg-email .me-primary:disabled{opacity:.6;cursor:default;filter:none}
#mg-email .me-links,#mg-email .me-foot{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 18px}
#mg-email .me-foot{margin-top:10px;padding-top:10px;border-top:1px solid rgba(140,180,230,.15)}
#mg-email .me-link{min-height:32px;padding:4px 2px;border:0;background:none;color:#8fd3ff;font:13px "MG VAG","Trebuchet MS",Arial,sans-serif;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#mg-email .me-link:hover{color:#fff}
#mg-email .me-link:disabled{color:#6f82a3;text-decoration:none;cursor:default}
#mg-email .me-x{position:absolute;right:8px;top:8px;width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.4);border-radius:8px;background:rgba(13,21,48,.7);color:#fff;font:20px/1 Arial,sans-serif;cursor:pointer}
#mg-email .me-x:hover{background:#f5b301;border-color:#f5b301;color:#14243d}
#mg-email .me-msg{min-height:1.45em;margin:10px 0 0;font-size:13px;color:#b9c9e8;overflow-wrap:anywhere}
#mg-email .me-msg:empty{min-height:0;margin:0}
#mg-email .me-msg[data-kind=error]{color:#ff9a9a}
#mg-email .me-msg[data-kind=ok]{color:#7ee2a8}
#mg-email .me-ok{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 0 8px;font:17px "MG VAG Bold","MG VAG",Arial,sans-serif;color:#7ee2a8}
.me-tick{display:inline-block;width:44px;height:44px;border-radius:50%;background:#2fbf71 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/26px no-repeat;animation:me-pop .35s ease-out}
@keyframes me-pop{from{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}
/* short landscape phones: tighter */
@media (max-height:430px){
  #mg-email{place-items:start center}
  #mg-email .me-card{padding:12px 16px 10px;font-size:13px}
  #mg-email h2{font-size:17px}
  #mg-email .me-step{margin-top:10px;gap:8px}
  #mg-email .me-text{margin-top:6px}
  #mg-email input,#mg-email .me-primary{min-height:38px}
  #mg-email .me-foot{margin-top:6px;padding-top:6px}
}

/* note after the mail's link */
#mg-email-note{position:fixed;z-index:2147483001;left:50%;top:16px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:10px 18px 10px 12px;
  background:linear-gradient(180deg,#1d3150,#0f1c31);border:2px solid #2fbf71;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.55);
  color:#fff;font:15px "MG VAG Bold","MG VAG",Arial,sans-serif;animation:me-in .28s ease-out;transition:opacity .5s}
#mg-email-note .me-tick{width:26px;height:26px;background-size:16px}
#mg-email-note.is-out{opacity:0}

/* Settings > Profile, under the Email field */
#settings-window .mg-email-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:-2px 0 6px}
#settings-window .mg-email-status .mes-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:12px;line-height:18px}
#settings-window .mg-email-status .mes-badge.ok{background:rgba(47,191,113,.18);color:#7ee2a8}
#settings-window .mg-email-status .mes-badge.ok::before{content:"\2713";font-weight:bold}
#settings-window .mg-email-status .mes-badge.no{background:rgba(245,179,1,.15);color:#ffd36a}
#settings-window #account-contact .mg-email-status .mes-btn{min-height:0;padding:3px 12px;font-size:12px;line-height:18px}
@media (prefers-reduced-motion:reduce){#mg-email,#mg-email .me-card,.me-tick,#mg-email-note{animation:none}}
