:root{
  --bg:#0a0b10;
  --bg-soft:#121520;
  --sidebar:#0c0f17;
  --sidebar-2:#111621;
  --surface:#ffffff;
  --surface-soft:#fff9f2;
  --text:#1f2430;
  --text-2:#566074;
  --muted:#97a0b2;
  --line:#e9edf4;
  --primary:#ff7a00;
  --primary-2:#ff4d00;
  --primary-3:#ffb347;
  --accent:#ffd9a6;
  --green:#3ed39b;
  font-family:'DM Sans',system-ui,sans-serif;
  color:var(--text);
  background:#f6f7fb;
  font-synthesis:none;
}

*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#f8f9fc,#eef2f8)}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.38;cursor:not-allowed}

.app{display:flex;min-height:100vh}

.sidebar{
  width:285px;
  background:
    radial-gradient(circle at top right, rgba(255,122,0,.18), transparent 26%),
    linear-gradient(180deg, rgba(255,77,0,.08), transparent 22%),
    linear-gradient(180deg, var(--sidebar), #080a0f 100%);
  color:#eef2ff;
  padding:24px 18px 18px;
  display:flex;
  flex-direction:column;
  flex-shrink:0;
  border-right:1px solid rgba(255,255,255,.05);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:2px 10px 34px;
}

.brand-logo{
  width:50px;
  height:50px;
  object-fit:contain;
  border-radius:14px;
  filter:drop-shadow(0 8px 26px rgba(255,102,0,.28));
  background:rgba(255,255,255,.04);
  padding:2px;
}

.brand-wordmark{
  display:flex;
  flex-direction:column;
  font-family:Manrope,sans-serif;
  font-weight:900;
  font-size:20px;
  letter-spacing:-.8px;
  line-height:1;
}

.brand-wordmark small{
  margin-top:5px;
  font-size:10px;
  letter-spacing:4px;
  color:#ffbe79;
  font-weight:800;
}

.compose{
  height:50px;
  border:0;
  border-radius:14px;
  font-weight:800;
  color:#fff;
  display:flex;
  gap:11px;
  align-items:center;
  padding:0 16px;
  margin-bottom:34px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow:0 14px 35px rgba(255,98,0,.22);
}

.compose:hover,.primary-btn:hover{filter:brightness(1.03)}

.plus{font-size:25px;font-weight:300;line-height:1}

.compose-key{
  margin-left:auto;
  color:#ffe6cf;
  font-size:11px;
  border:1px solid rgba(255,255,255,.28);
  padding:2px 6px;
  border-radius:5px;
}

.section-label,.eyebrow{
  font-size:10px;
  font-weight:800;
  letter-spacing:1.8px;
}

.section-label{color:#707a90;margin:0 15px 14px}

.nav-item{
  width:100%;
  border:0;
  background:transparent;
  color:#c2cad9;
  text-align:left;
  display:flex;
  gap:13px;
  align-items:center;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
  font-size:13px;
  margin-bottom:5px;
  transition:.18s ease;
}

.nav-item:hover{background:rgba(255,255,255,.06);color:white}

.nav-item.active{
  background:linear-gradient(90deg, rgba(255,122,0,.18), rgba(255,77,0,.08));
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,153,70,.12);
}

.ico{font-size:18px;width:22px;text-align:center;font-weight:400}

.counter{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  border-radius:999px;
  color:white;
  margin-left:auto;
  font-size:10px;
  padding:4px 8px;
}

.sidebar-bottom{margin-top:auto}

.plan{
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(255,124,0,.08), rgba(255,255,255,.02));
  border-radius:16px;
  padding:18px;
  margin-bottom:22px;
}

.plan-top{color:#ffd9a6;font-size:12px;font-weight:800}

.plan p{
  font-size:12px;
  line-height:1.6;
  color:#c3cad7;
  margin:10px 0;
}

.plan-link{font-size:11px;color:#ffb866;font-weight:800}

.account{
  width:100%;
  display:flex;
  align-items:center;
  text-align:left;
  gap:10px;
  border:0;
  border-top:1px solid rgba(255,255,255,.08);
  padding:16px 4px 0;
  color:white;
  background:none;
}

.avatar,.top-avatar{
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,#fff2df,#ffd2a3);
  color:#8f3900;
  font-weight:900;
  width:38px;
  height:38px;
}

.account-meta{display:flex;flex-direction:column;min-width:0}

.account-meta strong{
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:158px;
}

.account-meta small{font-size:11px;color:#9ca7bc;margin-top:4px}
.dots{margin-left:auto;color:#8b9cb4}

.main{flex:1;min-width:0}

.topbar{
  height:82px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  gap:20px;
  position:sticky;
  top:0;
  z-index:5;
}

.search{
  display:flex;
  align-items:center;
  gap:13px;
  background:#fff;
  border:1px solid #eceff5;
  border-radius:14px;
  width:min(460px,55%);
  height:44px;
  padding:0 14px;
  box-shadow:0 10px 20px rgba(16,24,40,.04);
}

.search-icon{font-size:24px;color:#95a3b7;line-height:1}

.search input{
  border:0;
  outline:0;
  background:transparent;
  font-size:13px;
  flex:1;
  min-width:0;
}

.search input::placeholder{color:#a1acbc}

kbd{
  font-size:10px;
  color:#9eabc0;
  background:#f7f8fb;
  padding:4px 7px;
  border-radius:6px;
  border:1px solid #edf0f5;
}

.top-actions{display:flex;align-items:center;gap:18px}

.status{
  font-size:11px;
  color:#718098;
  font-weight:700;
  white-space:nowrap;
}

.status i{
  background:var(--green);
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
  margin-right:7px;
  box-shadow:0 0 0 4px rgba(62,211,155,.12);
}

.icon-button{border:0;background:none;font-size:23px;color:#7989a1}

.top-avatar{
  height:36px;
  width:36px;
  background:linear-gradient(135deg,#fff2df,#ffd2a3);
  font-size:13px;
}

.content{max-width:1550px;margin:auto;padding:38px 42px 0}

.heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:29px;
}

.eyebrow{color:var(--primary-2)}
.eyebrow span{color:#b2bfce;margin:0 8px}

h1,h2{font-family:Manrope,sans-serif}

h1{
  font-size:34px;
  letter-spacing:-1.35px;
  margin:10px 0 6px;
  font-weight:900;
}

.h1dot{color:var(--primary)}
.subtitle{margin:0;color:#8a9aaf;font-size:13px}

.outline-btn{
  background:#fff;
  color:#5d6b82;
  border:1px solid #e0e6ef;
  border-radius:12px;
  padding:10px 16px;
  font-weight:800;
  font-size:12px;
  box-shadow:0 8px 18px rgba(18,24,40,.03);
}

.mail-card{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 20px 50px rgba(27,39,67,.06);
  min-height:460px;
  overflow:hidden;
}

.mail-toolbar{
  display:flex;
  height:60px;
  align-items:center;
  justify-content:space-between;
  padding:0 25px;
  border-bottom:1px solid #edf1f6;
  color:#8997a9;
  font-size:11px;
  background:linear-gradient(180deg,#fff,#fffaf6);
}

.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:15px}
.toolbar-left input{accent-color:var(--primary)}
.toolbar-sep{height:15px;background:#e5eaf1;width:1px}

.toolbar-right button{
  background:white;
  border:1px solid #e9edf4;
  border-radius:8px;
  width:28px;
  height:28px;
  color:#657287;
  font-size:20px;
  line-height:0;
}

.message{
  min-height:79px;
  display:grid;
  grid-template-columns:25px 41px minmax(130px,190px) minmax(160px,1fr) 30px 75px;
  align-items:center;
  gap:14px;
  padding:0 25px;
  border-bottom:1px solid #f0f2f6;
  cursor:pointer;
  transition:.15s ease;
}

.message:hover{background:#fff8f0}
.message.unread{background:#fffdfb}
.message input{accent-color:var(--primary)}

.sender-avatar{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:900;
  background:linear-gradient(135deg,#2d3340,#12151d)!important;
  color:#ffb05d!important;
}

.sender-name{
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.subject{
  font-size:12px;
  color:#697a91;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.unread .sender-name,.unread .subject{
  color:#1c2e48;
  font-weight:900;
}

.date{
  font-size:10px;
  color:#94a2b5;
  text-align:right;
  white-space:nowrap;
}

.star{
  font-size:19px;
  background:none;
  border:none;
  color:#bfcbda;
  line-height:1;
}

.star.active{color:#f6b743}

.loading,.empty{
  padding:110px 20px;
  text-align:center;
  color:#8b99ac;
  font-size:13px;
}

.empty strong{
  display:block;
  color:#3c4b62;
  font-size:17px;
  margin-bottom:10px;
}

footer{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:#a1aec0;
  padding:25px 2px;
}

footer b{color:var(--green)}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(8,10,15,.58);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:20;
}

.hidden{display:none!important}

/* LOGIN BACKDROP MIDWOLFIRE */
#loginOverlay{
  justify-content:flex-end;
  padding:40px clamp(30px,7vw,120px);
  overflow:hidden;
  background:
    radial-gradient(circle at 17% 30%, rgba(255,122,0,.24), transparent 17%),
    radial-gradient(circle at 22% 72%, rgba(255,76,0,.18), transparent 19%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.08), transparent 14%),
    linear-gradient(135deg, rgba(5,6,10,.94), rgba(12,15,24,.82));
  backdrop-filter:blur(14px);
}

#loginOverlay::before{
  content:"";
  position:absolute;
  left:clamp(20px,5vw,80px);
  top:50%;
  transform:translateY(-50%);
  width:min(42vw,620px);
  aspect-ratio:1/1;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,186,96,.34) 0%,
      rgba(255,124,0,.22) 24%,
      rgba(255,84,0,.12) 44%,
      rgba(255,84,0,.05) 58%,
      transparent 72%);
  filter:blur(10px);
  opacity:.95;
  pointer-events:none;
}

#loginOverlay::after{
  content:"MIDWOLFIRE MAIL";
  position:absolute;
  left:clamp(32px,6vw,95px);
  top:50%;
  transform:translateY(-56%);
  width:min(36vw,460px);
  color:rgba(255,255,255,.97);
  font-family:Manrope,sans-serif;
  font-weight:900;
  font-size:clamp(34px,4.4vw,62px);
  line-height:.94;
  letter-spacing:-2.2px;
  text-shadow:0 12px 40px rgba(0,0,0,.25);
  pointer-events:none;
}

.login{
  position:relative;
  z-index:2;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,242,.98));
  border:1px solid rgba(255,159,74,.18);
  border-radius:28px;
  padding:40px;
  width:100%;
  max-width:430px;
  box-shadow:0 30px 90px rgba(12,20,38,.28);
}

.login::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  border-radius:28px 28px 0 0;
  background:linear-gradient(90deg,var(--primary),#ffbe4a,var(--primary-2));
}

.login-logo{
  width:130px;
  height:130px;
  object-fit:contain;
  display:block;
  margin:0 auto 8px;
  filter:drop-shadow(0 12px 26px rgba(255,102,0,.18));
}

.login h2{
  font-size:29px;
  line-height:1.23;
  margin:10px 0 13px;
  letter-spacing:-1.3px;
}

.login h2 em{font-style:normal;color:var(--primary-2)}

.login p{
  font-size:13px;
  color:#8a9aaf;
  line-height:1.6;
  margin-bottom:28px;
}

.login label{
  font-size:11px;
  display:block;
  font-weight:800;
  color:#4d5b72;
  margin:17px 0 7px;
}

.login input,.composer input{
  width:100%;
  border:1px solid #e0e6ef;
  background:#ffffff;
  border-radius:12px;
  padding:13px;
  outline:0;
  font-size:13px;
  box-shadow:inset 0 1px 0 rgba(0,0,0,.02);
}

.login input:focus,.composer input:focus,.composer textarea:focus{
  border-color:#ff9e48;
  box-shadow:0 0 0 4px rgba(255,122,0,.11);
}

.primary-btn{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:white;
  border:0;
  border-radius:12px;
  padding:14px 18px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(255,98,0,.18);
}

.login .primary-btn{
  width:100%;
  display:flex;
  justify-content:space-between;
  margin-top:26px;
}

.login small{
  display:block;
  text-align:center;
  color:#9aa7b6;
  font-size:10px;
  margin-top:25px;
}

.error{color:#c83d54;font-size:12px;margin-top:12px}

.dialog{
  background:white;
  border-radius:20px;
  box-shadow:0 25px 80px #0004;
  max-width:720px;
  width:100%;
  max-height:88vh;
  overflow:auto;
}

.dialog-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:19px 23px;
  border-bottom:1px solid #e9edf4;
  font-size:14px;
  font-weight:800;
}

.dialog-header i{color:var(--primary)}
.close-btn{border:0;background:transparent;font-size:25px;color:#8a97aa}

.composer label{
  display:flex;
  align-items:center;
  gap:16px;
  padding:8px 25px;
  border-bottom:1px solid #edf0f5;
  font-size:12px;
  color:#8a96a7;
}

.composer input{border:0;background:white;flex:1}

.composer textarea{
  width:100%;
  border:0;
  outline:0;
  resize:vertical;
  min-height:270px;
  padding:25px;
  font-size:14px;
  line-height:1.7;
}

.composer-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 22px;
  border-top:1px solid #edf0f5;
}

.composer-footer span{font-size:11px;color:#a6b0c0}
.composer .error{padding:0 25px 12px}

.read #readContent{padding:25px}

.read h2{font-size:22px;line-height:1.3}

.read-meta{
  font-size:12px;
  color:#8795a7;
  line-height:1.8;
  border-bottom:1px solid #edf0f5;
  padding-bottom:16px;
  margin-bottom:20px;
}

.read-body{
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.85;
  color:#38475e;
}

.toast{
  position:fixed;
  bottom:26px;
  right:25px;
  background:#13243e;
  color:white;
  padding:15px 22px;
  border-radius:12px;
  box-shadow:0 12px 45px #0003;
  font-size:12px;
  z-index:30;
}

.mobile-menu{display:none}

@media(max-width:1100px){
  #loginOverlay{
    justify-content:center;
    padding:20px;
  }

  #loginOverlay::after{
    display:none;
  }

  #loginOverlay::before{
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(88vw,560px);
    opacity:.72;
  }
}

@media(max-width:920px){
  .sidebar{width:215px}
  .topbar{padding:0 25px}
  .content{padding:35px 25px}
  .status{display:none}
  .message{
    grid-template-columns:20px 36px minmax(80px,135px) minmax(110px,1fr) 24px 65px;
    gap:8px;
    padding:0 15px;
  }
}

@media(max-width:700px){
  .sidebar{
    position:fixed;
    z-index:10;
    height:100vh;
    transform:translateX(-100%);
    transition:.25s;
    width:265px;
  }

  .sidebar.open{transform:translateX(0)}
  .topbar{height:66px;padding:0 14px}
  .mobile-menu{display:block;background:none;border:none;font-size:21px}
  .search{width:100%}
  .search kbd{display:none}
  .top-actions{gap:7px}
  .content{padding:25px 12px}
  .heading{padding:0 6px}
  .heading h1{font-size:25px}
  .outline-btn{padding:8px}
  .outline-btn span{display:none}

  .message{
    grid-template-columns:32px minmax(100px,1fr) 65px;
    padding:12px;
    min-height:75px;
  }

  .message>input,.message>.star{display:none}
  .message .sender-name{grid-column:2;grid-row:1}
  .message .sender-avatar{grid-column:1;grid-row:1/3}
  .message .subject{grid-column:2;grid-row:2}
  .message .date{grid-column:3;grid-row:1}
  .mail-toolbar{padding:0 14px}
  footer{flex-direction:column;gap:8px}
  .composer-footer span{display:none}
  .login{padding:28px}
  .brand-logo{width:44px;height:44px}
  .brand-wordmark{font-size:18px}
  .login-logo{width:112px;height:112px}
}

/* Remover barra laranja no topo do login */
.login::before {
    content: none;
    display: none;
}
