/* =========================================================
   EUstate Theme v1.4.5
   First-visit market gate + role-based auth + admin preview
   ========================================================= */

/* First visit */
.eus-first-market-v145{
  position:fixed;
  inset:0;
  z-index:10050;
  display:grid;
  place-items:center;
  padding:22px;
}
.eus-first-market-backdrop-v145{
  position:absolute;
  inset:0;
  background:rgba(16,35,72,.70);
  backdrop-filter:blur(14px);
}
.eus-first-market-dialog-v145{
  position:relative;
  width:min(620px,100%);
  padding:34px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:28px;
  background:
    radial-gradient(circle at 100% 0%,rgba(59,130,246,.13),transparent 30%),
    #fff;
  box-shadow:0 34px 100px rgba(15,42,92,.28);
}
.eus-first-market-brand-v145{
  margin-bottom:25px;
  color:#1e3a8a;
  font-family:Georgia,serif;
  font-size:26px;
  font-weight:800;
}
.eus-first-market-brand-v145 span{color:#1d4ed8}
.eus-first-market-brand-v145 small{font-size:9px;color:#7890ba}
.eus-first-market-dialog-v145 h2{
  margin:7px 0 10px;
  color:#112a56;
  font-family:Georgia,serif;
  font-size:clamp(30px,5vw,44px);
  line-height:1.05;
}
.eus-first-market-dialog-v145>p{
  max-width:530px;
  margin:0 0 24px;
  color:#58709d;
  font-size:14px;
  line-height:1.7;
}
.eus-first-market-select-v145{
  display:block;
  margin-top:18px;
}
.eus-first-market-select-v145>span{
  display:block;
  margin-bottom:7px;
  color:#29456f;
  font-size:11px;
  font-weight:850;
}
.eus-first-market-select-v145 select{
  width:100%;
  min-height:54px;
  padding:0 15px;
  border:1px solid #d7e3f4;
  border-radius:14px;
  background:#f8fbff;
  color:#19365f;
  font-size:14px;
  outline:0;
}
.eus-first-market-select-v145 select:focus{
  border-color:#8eb5ef;
  box-shadow:0 0 0 4px rgba(29,78,216,.08);
}
.eus-first-market-actions-v145{
  display:flex;
  gap:10px;
  margin-top:17px;
}
.eus-first-market-actions-v145 button{
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  font-weight:850;
  cursor:pointer;
}
.eus-first-market-actions-v145 .is-primary{
  border:1px solid #1d4ed8;
  background:linear-gradient(135deg,#1e3a8a,#1d4ed8);
  color:#fff;
}
.eus-first-market-actions-v145 .is-primary:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.eus-first-market-actions-v145 .is-global{
  border:1px solid #d7e3f4;
  background:#fff;
  color:#1e3a8a;
}
.eus-first-market-dialog-v145>small{
  display:block;
  margin-top:14px;
  color:#7c8dab;
  font-size:10px;
}

/* Auth role choice */
.eus-auth-form-panel-v145{
  min-height:560px;
}
.eus-auth-role-step-v145 h2,
.eus-auth-method-step-v145 h2{
  margin:8px 0 8px;
}
.eus-auth-role-grid-v145{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:24px;
}
.eus-auth-role-grid-v145>button{
  width:100%;
  min-height:102px;
  padding:16px;
  border:1px solid #dbe6f5;
  border-radius:18px;
  background:#fff;
  display:grid;
  grid-template-columns:46px 1fr 20px;
  align-items:center;
  gap:14px;
  text-align:left;
  color:#213c69;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(30,58,138,.06);
  transition:.22s ease;
}
.eus-auth-role-grid-v145>button:hover{
  transform:translateY(-3px);
  border-color:#a9c6ef;
  box-shadow:0 18px 38px rgba(29,78,216,.12);
}
.eus-auth-role-grid-v145>button>i{
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#1d4ed8;
  font-style:normal;
}
.eus-auth-role-grid-v145>button:nth-child(2)>i{
  background:#ecfbf7;
  color:#0f8f7f;
}
.eus-auth-role-grid-v145 svg{
  width:18px;
  height:18px;
}
.eus-auth-role-grid-v145 span strong{
  display:block;
  color:#17325e;
  font-size:15px;
}
.eus-auth-role-grid-v145 span small{
  display:block;
  margin-top:4px;
  color:#667da4;
  font-size:11px;
  line-height:1.5;
}
.eus-auth-method-step-v145[hidden],
.eus-auth-role-step-v145[hidden]{
  display:none!important;
}
.eus-auth-back-v145{
  padding:0;
  border:0;
  background:none;
  color:#1d4ed8;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.eus-auth-selected-role-v145{
  display:inline-flex;
  margin:15px 0 2px;
  padding:6px 9px;
  border-radius:999px;
  background:#eef4ff;
  color:#1e3a8a;
  font-size:10px;
  font-weight:850;
}
.eus-auth-preview-note-v145{
  margin:0 0 18px;
  padding:11px 12px;
  display:flex;
  gap:10px;
  border:1px solid #c9dcf8;
  border-radius:13px;
  background:#eef5ff;
  color:#31527d;
  font-size:10px;
  line-height:1.45;
}
.eus-auth-preview-note-v145 svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  color:#1d4ed8;
}
.eus-auth-preview-note-v145 strong{
  display:block;
  color:#17325e;
}

/* Admin preview has a subtle badge, public visitors never see it. */
body.eus-admin-preview-v145:before{
  content:"EUstate preview";
  position:fixed;
  right:18px;
  top:46px;
  z-index:9900;
  padding:7px 10px;
  border-radius:999px;
  background:#ffd43b;
  color:#1e3a8a;
  font-size:10px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(30,58,138,.16);
}

/* Keep login visually obvious when the theme is in visitor preview. */
body.eus-preview-guest-v145 .eus-login-button{
  box-shadow:0 8px 22px rgba(29,78,216,.12);
}

@media(max-width:650px){
  .eus-first-market-v145{padding:12px}
  .eus-first-market-dialog-v145{padding:24px 18px;border-radius:22px}
  .eus-first-market-actions-v145{display:grid}
  .eus-first-market-actions-v145 button{width:100%}
  .eus-auth-form-panel-v145{min-height:0}
  .eus-auth-role-grid-v145>button{
    min-height:92px;
    grid-template-columns:42px 1fr 18px;
    padding:13px;
  }
  body.eus-admin-preview-v145:before{
    top:auto;
    bottom:82px;
    right:10px;
  }
}
