
/* V58.28B — AOM Account private portal + account-aware Add EA */

body.page-aom_account #main > .aom-page-back-wrap{
  display:none !important;
}

.aom-account-page{min-height:70vh}
.aom-account-page [hidden]{display:none!important}

.aom-account-login-stage{
  min-height:calc(100vh - 96px);
  display:flex;
  align-items:center;
  padding:28px 0 52px;
  background:rgba(0,7,11,.34);
}

.aom-account-page{
  transition:opacity .16s ease-out;
}
.aom-account-page.aom-account-resolving{opacity:0}

.aom-account-login-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.aom-account-loading,
.aom-account-auth-card{
  width:min(100%,480px);
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:rgba(4,14,21,.94);
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}

.aom-account-loading{padding:28px;text-align:center;opacity:.72}
.aom-account-auth{width:min(100%,480px)}
.aom-account-auth-card{padding:34px 32px 30px;text-align:center}

.aom-account-login-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border:1px solid rgba(70,210,245,.18);
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
  color:#45d8f5;
}

.aom-account-auth-card h1{
  margin:18px 0 10px;
  font-size:clamp(28px,4vw,38px);
  line-height:1.08;
}

.aom-account-login-copy{
  max-width:390px;
  margin:0 auto 26px;
  opacity:.62;
  line-height:1.6;
  font-size:14px;
}

.aom-account-form{display:grid;gap:14px;text-align:left}
.aom-account-form label{display:grid;gap:8px}
.aom-account-form label span{
  font-size:11px;
  font-weight:900;
  letter-spacing:.10em;
  opacity:.62;
}

.aom-account-form input,
.aom-account-add-form input{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  padding:15px 16px;
  background:rgba(255,255,255,.025);
  color:inherit;
  outline:none;
}

.aom-account-form input[name="aom_id"]{text-transform:uppercase}
.aom-account-form input[name="otp"]{
  text-align:center;
  letter-spacing:.18em;
  font-size:18px;
}

.aom-account-form input:focus,
.aom-account-add-form input:focus{
  border-color:rgba(69,216,245,.50);
}

.aom-account-form .btn{width:100%;justify-content:center}

.aom-account-otp-note{
  padding:12px 14px;
  border-radius:12px;
  background:rgba(69,216,245,.055);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}

.aom-account-text-button{
  border:0;
  background:none;
  color:inherit;
  opacity:.62;
  cursor:pointer;
  text-align:center;
  padding:5px 0;
}

.aom-account-message{
  min-height:20px;
  margin-top:13px;
  font-size:12px;
  line-height:1.5;
}

.aom-account-message.is-error{color:#ff9d9d}
.aom-account-message.is-ok{color:#9ee7bd}

.aom-account-new{
  display:flex;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:22px;
  padding-top:19px;
  border-top:1px solid rgba(255,255,255,.065);
  font-size:12px;
  opacity:.65;
}

.aom-account-new a{text-decoration:none}

/* Private account shell */
.aom-account-dashboard-section{
  padding-top:30px !important;
  min-height:calc(100vh - 100px);
}

.aom-account-dashboard{
  display:grid;
  gap:22px;
}

.aom-account-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.aom-account-topbar h1{
  margin:7px 0 5px;
  font-size:clamp(30px,4vw,44px);
}

.aom-account-topbar p{margin:0;opacity:.62}

.aom-account-private-nav{
  display:flex;
  gap:8px;
  align-items:center;
  padding:7px;
  width:max-content;
  max-width:100%;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(4,15,22,.66);
}

.aom-account-private-nav button{
  appearance:none;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:11px;
  font-weight:800;
  opacity:.62;
}

.aom-account-private-nav button:hover,
.aom-account-private-nav button.is-active{
  opacity:1;
  background:rgba(55,207,239,.09);
}

.aom-account-main-view{
  display:grid;
  gap:28px;
}

.aom-account-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.aom-account-summary-grid article{
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  padding:20px;
  background:rgba(255,255,255,.025);
}

.aom-account-summary-grid span,
.aom-account-selected-product span{
  display:block;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  opacity:.54;
}

.aom-account-summary-grid b{
  display:block;
  margin-top:9px;
  font-size:20px;
  overflow-wrap:anywhere;
}

.aom-account-summary-grid small{
  display:block;
  margin-top:6px;
  opacity:.52;
}

.aom-account-copy{
  margin-top:10px;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  text-decoration:underline;
  cursor:pointer;
  opacity:.68;
}

.aom-account-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-top:4px;
}

.aom-account-section-head h2{margin:7px 0 0}

.aom-account-ea-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.aom-ea-card{
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  padding:22px;
  background:rgba(255,255,255,.025);
  display:grid;
  gap:16px;
}

.aom-ea-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.aom-ea-card-head h3{margin:0;font-size:20px}

.aom-ea-status{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(108,231,157,.12);
  white-space:nowrap;
}

.aom-ea-status:not(.is-active){
  background:rgba(255,255,255,.07);
  opacity:.7;
}

.aom-ea-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.aom-ea-meta div{
  padding:12px;
  border-radius:13px;
  background:rgba(255,255,255,.035);
}

.aom-ea-meta span{
  display:block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  opacity:.48;
}

.aom-ea-meta b{
  display:block;
  margin-top:5px;
  font-size:13px;
  overflow-wrap:anywhere;
}

.aom-ea-actions{display:flex;gap:10px;flex-wrap:wrap}
.aom-ea-unavailable{font-size:12px;opacity:.52}

.aom-account-empty{
  grid-column:1/-1;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  padding:28px;
  text-align:center;
  opacity:.68;
}

/* Add EA private view */
.aom-account-add-view{
  display:grid;
  gap:20px;
  max-width:1120px;
}

.aom-account-add-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
}

.aom-account-add-head h2{
  margin:7px 0 8px;
  font-size:clamp(28px,3vw,38px);
}

.aom-account-add-head p{
  margin:0;
  max-width:720px;
  opacity:.62;
  line-height:1.6;
}

.aom-account-add-rule{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  border:1px solid rgba(69,216,245,.14);
  background:rgba(69,216,245,.045);
  border-radius:14px;
  padding:13px 15px;
  font-size:12px;
}

.aom-account-add-rule span{opacity:.66}

.aom-account-available-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.aom-account-available-card{
  display:grid;
  gap:14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  padding:20px;
  background:rgba(255,255,255,.025);
}

.aom-account-available-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.aom-account-available-card h3{margin:0;font-size:20px}

.aom-account-available-badge{
  padding:6px 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  background:rgba(69,216,245,.09);
}

.aom-account-available-badge.is-pending{
  background:rgba(255,194,77,.10);
}

.aom-account-available-card p{
  margin:0;
  font-size:12px;
  opacity:.58;
  line-height:1.55;
}

.aom-account-add-form{
  display:grid;
  gap:18px;
  border:1px solid rgba(69,216,245,.16);
  border-radius:20px;
  padding:22px;
  background:rgba(5,18,27,.78);
}

.aom-account-selected-product b{
  display:block;
  margin-top:6px;
  font-size:22px;
}

.aom-account-add-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.aom-account-add-fields label{
  display:grid;
  gap:7px;
}

.aom-account-add-fields label>span{
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
  opacity:.56;
}

.aom-account-add-fields small{
  font-size:10px;
  opacity:.52;
  line-height:1.45;
}

.aom-account-add-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.aom-account-add-result{
  min-height:22px;
  font-size:12px;
  line-height:1.55;
}

.aom-account-add-result.is-error{color:#ff9d9d}
.aom-account-add-result.is-ok{color:#9ee7bd}

@media(max-width:860px){
  .aom-account-login-stage{
    min-height:calc(100vh - 76px);
    padding:24px 0 38px;
  }

  .aom-account-auth-card{padding:28px 20px 24px}

  .aom-account-summary-grid,
  .aom-account-ea-grid,
  .aom-account-available-grid,
  .aom-account-add-fields{
    grid-template-columns:1fr;
  }

  .aom-account-topbar,
  .aom-account-section-head,
  .aom-account-add-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .aom-account-private-nav{
    width:100%;
    box-sizing:border-box;
    overflow:auto;
  }

  .aom-account-private-nav button{
    white-space:nowrap;
  }
}

/* =========================================================
   V58.28C — MULTIPLE MT5 ACCOUNTS PER EA
   ========================================================= */

.aom-ea-binding-count{
  display:block;
  margin-top:6px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  opacity:.48;
}

.aom-ea-bindings{
  display:grid;
  gap:9px;
}

.aom-ea-binding-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:13px;
  background:rgba(255,255,255,.025);
}

.aom-ea-binding-data{
  min-width:0;
}

.aom-ea-binding-data span{
  display:block;
  font-size:9px;
  font-weight:800;
  letter-spacing:.09em;
  opacity:.46;
}

.aom-ea-binding-data b{
  display:block;
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.aom-ea-binding-status{
  justify-self:end;
  padding:6px 8px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
  white-space:nowrap;
}

.aom-ea-binding-status.is-active{
  background:rgba(108,231,157,.12);
}

.aom-ea-binding-status.is-pending{
  background:rgba(255,194,77,.11);
  color:#ffd184;
}

.aom-ea-binding-empty{
  padding:14px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:13px;
  font-size:11px;
  text-align:center;
  opacity:.56;
}

.aom-account-mt5-view{
  display:grid;
  gap:20px;
  max-width:1120px;
}

.aom-account-mt5-view .aom-account-add-form{
  width:100%;
  box-sizing:border-box;
}

@media(max-width:860px){
  .aom-ea-binding-row{
    grid-template-columns:1fr;
    gap:7px;
  }

  .aom-ea-binding-status{
    justify-self:start;
  }
}

.aom-account-broker-field{grid-column:1/-1;display:grid!important;gap:7px!important;margin-bottom:2px!important}.aom-account-broker-field>span{font-size:10px;font-weight:900;letter-spacing:.1em;opacity:.56}.aom-account-broker-field select{width:100%;height:50px;min-height:50px;box-sizing:border-box;padding:0 14px;border:1px solid rgba(255,255,255,.11);border-radius:13px;outline:none;background:rgba(8,24,34,.95);color:inherit}.aom-account-broker-field small{min-height:0!important;font-size:10px!important;line-height:1.45!important;color:#ffd184!important;opacity:.78!important}.aom-account-broker-cta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(69,216,245,.12);border-radius:13px;background:rgba(69,216,245,.035);font-size:10px}.aom-account-broker-cta[hidden]{display:none!important}.aom-account-broker-cta a{white-space:nowrap}.aom-ea-binding-broker{display:block;margin-bottom:4px;font-size:8px;font-weight:900;letter-spacing:.1em;color:#45d8f5}.aom-ea-status.is-setup{background:rgba(255,194,77,.10)!important;color:#ffd184}.aom-ea-binding-status.is-blocked{background:rgba(255,120,120,.10);color:#ffaaaa}.aom-ea-setup-note{font-size:11px;line-height:1.5;opacity:.58}[data-account-add-open][disabled]{cursor:not-allowed!important;opacity:.46!important;filter:saturate(.45)}@media(max-width:860px){.aom-account-broker-cta{align-items:flex-start;flex-direction:column}}