/* EA User Registration & Dashboard - Form Styles (v1.1.4)
   Uses CSS variables so admin settings can theme forms site-wide.
*/

.ea-auth-wrap{
  width:100%;
}

.ea-form{
  width:100%;
  margin:0;
  box-sizing:border-box;
}

/* -----------------------------------------------------
   Modern Auth (tabs) — matches the provided screenshots
   Used by shortcode: [ea_auth_popup]
----------------------------------------------------- */

.ea-auth-modern{
  width:100%;
  /* Transparent wrapper (meant to be used inside a popup/modal) */
  min-height: unset;
  padding: 0;
  background: transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap: 22px;
}

/* Hero removed per request (kept class hooks harmless) */
.ea-auth-hero{ display:none; }

.ea-auth-card{
  width:100%;
  max-width: 560px;
  padding: 22px;
}

.ea-auth-tabs{
  display:flex;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  margin-bottom: 18px;
}

.ea-auth-tab{
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  border-radius: 8px;
  height: 42px;
  padding: 0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  /* inactive tab: off-grey text */
  color: rgba(255,255,255,0.55) !important;
  font-size: 13px;
  font-weight: 700;
  cursor:pointer;
  transition: background .15s ease, color .15s ease, filter .15s ease;
  box-shadow: none !important;
  outline: none !important;
}

.ea-auth-tab:hover{ filter: brightness(1.08); }

.ea-auth-tab.is-active{
  background: #ffffff !important;
  color: #0b0b0d !important;
}

/* Extra-specific overrides to beat theme button styles (including !important rules) */
.ea-auth-modern .ea-auth-tabs .ea-auth-tab{
  background: transparent !important;
  color: rgba(255,255,255,0.55) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ea-auth-modern .ea-auth-tabs .ea-auth-tab.is-active{
  background: #ffffff !important;
  color: #0b0b0d !important;
}

/* Popup card look (matte black) */
.ea-auth-modern .ea-card{
  background: #181818 !important;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 54px rgba(0,0,0,0.55);
}

.ea-auth-form{ margin: 0; }

.ea-auth-modern .ea-label{
  text-transform:none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
}

.ea-inputwrap{
  position: relative;
}

.ea-ico{
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.52);
  pointer-events:none;
}

.ea-inputwrap .ea-input{
  padding-left: 54px !important;
}

.ea-auth-btn{
  margin-top: 14px;
  background: #ffffff;
  color: #0b0b0d;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ea-auth-btn:hover{
  filter: brightness(0.98);
}

.ea-auth-forgot{
  display:block;
  margin-top: 14px;
  text-align:center;
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
}

.ea-auth-forgot:hover{
  text-decoration: underline;
}

@media (max-width: 420px){
  .ea-auth-head{ font-size: 36px; }
  .ea-auth-card{ padding: 18px; }
}

/* Ensure auth-specific overrides win against the base .ea-card / .ea-btn rules */
.ea-auth-modern .ea-auth-card{ padding: 22px !important; }
.ea-auth-modern .ea-auth-btn{
  background: #ffffff !important;
  color: #0b0b0d !important;

  height: 42px !important;
  font-size: 13px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ea-auth-modern .ea-input{
  border-radius: 8px !important;
  border-color: rgba(45,123,255,0.22) !important;
  background: #0D0D0D !important;
  color: #ffffff !important;
  caret-color: #ffffff;
  font-size: 13px !important;
  line-height: 1.2 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
}

/* Auth input hard overrides (size + background + radius) */
.ea-auth-modern input.ea-input,
.ea-auth-modern input[type="text"].ea-input,
.ea-auth-modern input[type="email"].ea-input,
.ea-auth-modern input[type="password"].ea-input,
.ea-auth-modern input[type="tel"].ea-input,
.ea-auth-modern input[type="number"].ea-input,
.ea-auth-modern select.ea-input{
  height: 42px !important;
  border-radius: 8px !important;
  background: #0D0D0D !important;
  background-color: #0D0D0D !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  padding: 10px 12px !important;
}

.ea-auth-modern textarea.ea-input{
  border-radius: 8px !important;
  background: #0D0D0D !important;
  background-color: #0D0D0D !important;
  color: #ffffff !important;
}

/* Icon + placeholder spacing (prevents overlap) */
.ea-auth-modern .ea-inputwrap{ position: relative; }
.ea-auth-modern .ea-has-ico{ position: relative; }
.ea-auth-modern .ea-ico{
  left: 16px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Some themes force paddings on input[type=...] with !important. We mark icon inputs
   explicitly and apply padding with higher specificity + !important. */
.ea-auth-modern .ea-has-ico input.ea-input.ea-input--with-ico,
.ea-auth-modern input.ea-input.ea-input--with-ico{
  padding-left: 64px !important;
  padding-inline-start: 64px !important;
  text-align: left !important;
  text-indent: 0 !important;
}


/* Force ALL auth input types (some themes target type selectors aggressively) */
.ea-auth-modern input[type="text"].ea-input,
.ea-auth-modern input[type="email"].ea-input,
.ea-auth-modern input[type="password"].ea-input,
.ea-auth-modern input[type="tel"].ea-input,
.ea-auth-modern input[type="number"].ea-input,
.ea-auth-modern input[type="search"].ea-input,
.ea-auth-modern input[type="url"].ea-input,
.ea-auth-modern input[type="date"].ea-input{
  background: #0D0D0D !important;
  color: #ffffff !important;
}

.ea-auth-modern input.ea-input{ height: 42px !important; }

.ea-auth-modern .ea-input:focus,
.ea-auth-modern .ea-input.is-focused{
  border-color: #2D7BFF !important;
  box-shadow: 0 0 0 3px rgba(45,123,255,0.22) !important;
  background: #0D0D0D !important;
  color: #ffffff !important;
}

/* Force browser autofill to keep the matte input background */
.ea-auth-modern input.ea-input:-webkit-autofill,
.ea-auth-modern input.ea-input:-webkit-autofill:hover,
.ea-auth-modern input.ea-input:-webkit-autofill:focus,
.ea-auth-modern textarea.ea-input:-webkit-autofill,
.ea-auth-modern textarea.ea-input:-webkit-autofill:hover,
.ea-auth-modern textarea.ea-input:-webkit-autofill:focus,
.ea-auth-modern select.ea-input:-webkit-autofill,
.ea-auth-modern select.ea-input:-webkit-autofill:hover,
.ea-auth-modern select.ea-input:-webkit-autofill:focus{
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #0D0D0D inset !important;
  box-shadow: 0 0 0px 1000px #0D0D0D inset !important;
  transition: background-color 9999s ease-out 0s;
}

.ea-card{
  background: var(--ea-card-bg, #0b1224);
  border: 1px solid var(--ea-card-border, #22304a);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  color: #ffffff;
}

.ea-title{
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ea-subtitle{
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
}

.ea-field{
  margin: 14px 0;
}

.ea-label{
  display:block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.ea-input{
  width:100%;
  box-sizing:border-box;
  background: var(--ea-input-bg, #0f1a33);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  color: #ffffff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ea-input::placeholder{
  color: rgba(255,255,255,0.35);
}

.ea-input:focus,
.ea-input.is-focused{
  background: var(--ea-input-bg, #0f1a33) !important;
  color: #ffffff !important;
  border-color: var(--ea-input-focus, #e11d2e) !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18) !important;
}

.ea-textarea{
  resize: vertical;
  min-height: 120px;
}

.ea-coding{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #f5f5f5 !important;
  line-height: 1.35;
}



/* Prompt progress bar */
.ea-progress{
  width:100%;
  height:8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow:hidden;
  margin-top: 10px;
  display:none;
}
.ea-progress.is-active{ display:block; }
.ea-progress-bar{
  display:block;
  height:100%;
  width:0%;
  background: var(--ea-input-focus, #e11d2e);
  border-radius: 999px;
  transition: width 0.12s linear;
}

/* Disabled button state */
.ea-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
  transform: none !important;
}

.ea-btn{
  width:100%;
  margin-top: 10px;
  padding: 16px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ea-input-focus, #e11d2e);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease;
}

.ea-btn:hover{
  filter: brightness(1.05);
}

.ea-btn:active{
  transform: translateY(1px);
}

.ea-msg{
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.ea-msg.ea-ok{
  color: rgba(34, 197, 94, 1);
}

.ea-msg.ea-err{
  color: rgba(248, 113, 113, 1);
}

/* Make selects match inputs nicely */
.ea-form select.ea-input{
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* In case a theme adds weird form styles */
.ea-form input, .ea-form textarea, .ea-form select, .ea-form button{
  font-family: inherit;
}


/* Prevent browser autofill/focus from forcing white backgrounds */
.ea-input:-webkit-autofill,
.ea-input:-webkit-autofill:hover,
.ea-input:-webkit-autofill:focus{
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px var(--ea-input-bg, #0f1a33) inset !important;
  border-color: var(--ea-input-focus, #e11d2e) !important;
}


/* Headings inside list-style select */
.ea-opt-heading{
  font-weight: 800;
  color: rgba(255,255,255,0.55);
}

/* When select uses size (listbox), remove dropdown chevron background */
.ea-select[size]{
  background-image: none !important;
  padding-right: 16px;
}

/* Custom dropdown (Symbol selector) */
.ea-dropdown{
  position: relative;
}

.ea-dropdown-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.ea-dropdown-caret{
  opacity: 0.75;
  font-size: 14px;
  line-height: 1;
}

.ea-dropdown-menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--ea-card-bg, #0b1224);
  border: 1px solid var(--ea-card-border, #22304a);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
  padding: 10px;
  z-index: 9999;
  display: none;

  /* Show ~5 options worth of height, then scroll */
  max-height: 240px;
  overflow-y: auto;
}

.ea-dropdown.is-open .ea-dropdown-menu{
  display: block;
}

.ea-dd-group{
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ea-dd-group:last-child{
  border-bottom: 0;
}

.ea-dd-group-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 6px 6px 8px;
}

.ea-dd-heading{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  padding: 6px;
}

.ea-dd-option{
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.92);
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ea-dd-option:hover{
  background: rgba(255,255,255,0.07);
}

.ea-dd-option:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
  border-radius: 8px;
}



/* Prompt loading overlay + popup (v1.2.0) */
.ea-overlay, .ea-popup{
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.ea-overlay-card{
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--ea-card-border, #22304a);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}
.ea-overlay-header{
  padding: 18px 18px 10px 18px;
}
.ea-overlay-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  color: #fff;
}
.ea-overlay-sub{
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.ea-codebox{
  padding: 14px 18px 16px 18px;
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid var(--ea-card-border, #22304a);
  border-bottom: 1px solid var(--ea-card-border, #22304a);
  background: rgba(0,0,0,0.22);
}
.ea-code-lines{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(190,255,210,0.9);
}
.ea-code-cursor{
  display: inline-block;
  animation: ea-blink 1s step-end infinite;
  color: rgba(255,255,255,0.9);
}
@keyframes ea-blink{
  50%{ opacity: 0; }
}
.ea-overlay-footer{
  padding: 12px 18px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ea-overlay-hint{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.ea-popup-card{
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--ea-card-border, #22304a);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  padding: 22px;
  box-sizing: border-box;
  text-align: left;
}
.ea-popup-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.ea-popup-desc{
  margin: 0 0 16px 0;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.55;
}
.ea-popup-actions{
  display: flex;
  justify-content: flex-end;
}

/* Keep themed input backgrounds on focus for ALL inputs */
.ea-input:focus,
.ea-textarea:focus,
.ea-select:focus{
  background: var(--ea-input-bg, #0f1a33) !important;
}


/* Disabled button styling */
.ea-btn[disabled], .ea-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

/* History list */
.ea-history-list { display: grid; gap: 14px; margin-top: 14px; }
.ea-history-item { padding: 16px; }
.ea-history-top { display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.ea-history-symbol { font-weight: 700; letter-spacing: 0.3px; }
.ea-history-status { font-size: 12px; opacity: 0.9; padding: 4px 10px; border: 1px solid var(--ea-border); border-radius: 999px; }
.ea-history-date { margin-top: 6px; font-size: 12px; opacity: 0.75; }
.ea-history-strategy { margin-top: 10px; white-space: pre-wrap; line-height: 1.35; }
.ea-history-link { margin-top: 10px; }
.ea-history-link a { color: #ffffff; text-decoration: underline; }


/* History table border styling */
.ea-auth-wrap table,
.ea-auth-wrap td,
.ea-auth-wrap th{
  border: 1px solid #d1d5db00;
}


/* Button consistency inside auth popup */
.ea-auth-modern button.ea-btn,
.ea-auth-modern .ea-auth-tab{
  height: 42px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.ea-auth-modern button.ea-btn{
  padding: 0 14px !important;
  border-radius: 8px !important;
}

/* Prevent icons from shrinking and overlapping text */
.ea-auth-modern .ea-ico svg{ display:block; }

/* -----------------------------------------------------
   LTR Menu Profile Button (Avatar + Name)
   Shortcode: [ea_menu_profile]
----------------------------------------------------- */

.ea-menu-profile{ width: 100%; }

.ea-menu-profile__btn{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  box-sizing: border-box;
}


/* Remove hover/active background highlight */
.ea-menu-profile__btn:hover,
.ea-menu-profile__btn:active,
.ea-menu-profile__btn:focus,
.ea-menu-profile__btn:focus-visible,
.ea-menu-profile__btn.active,
.ea-menu-profile__btn.is-active,
.ea-menu-profile__btn[aria-current="page"]{
  background: transparent !important;
  box-shadow: none !important;
}
.ea-menu-profile__avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #3c3c3c;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

.ea-menu-profile__name{
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------------------------------------
   Profile Page (Full page container)
   Shortcode: [ea_user_profile]
----------------------------------------------------- */

.ea-profile-page{
  background: transparent !important;
  padding: 16px 12px !important;
}

.ea-profile-card{
  max-width: 560px;
  margin: 0 auto;
  background: #181818 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-sizing: border-box;
}

.ea-profile-top{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
  padding: 4px 0 14px;
}

.ea-profile-avatar{
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #3c3c3c !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff !important;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.ea-profile-email{
  color: rgba(255,255,255,0.75) !important;
  font-size: 14px !important;
  font-weight: 600;
  text-align:center;
}

.ea-profile-section-title{
  margin: 6px 0 10px;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,0.92) !important;
}

.ea-profile-row{
  display:flex;
  gap: 10px;
}

.ea-profile-row-2 .ea-profile-field{
  flex: 1 1 0;
}

.ea-profile-page .ea-label{
  color: rgba(255,255,255,0.65) !important;
}

.ea-profile-page .ea-input{
  background: #0D0D0D !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.92) !important;
  border-radius: 10px !important;
}

.ea-profile-page .ea-input:focus,
.ea-profile-page .ea-input:active{
  background: #181818 !important;
}

.ea-profile-edit-btn{
  width: 100% !important;
  height: 42px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

/* Profile logout button */
.ea-profile-logout-btn{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 42px !important;
  margin-top: 12px !important;
  border-radius: 10px !important;
  background: #EE1B3B !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.ea-profile-logout-btn:hover,
.ea-profile-logout-btn:focus{
  filter: brightness(0.95) !important;
  color: #fff !important;
}

/* Keep first/last side-by-side even on mobile (as requested) */
@media (max-width: 520px){
  .ea-profile-card{ padding: 14px !important; }
}


/* -----------------------------------------------------
   Prompt Form Page — match Profile look & feel
   Shortcode: [ea_prompt_form]
----------------------------------------------------- */

.ea-prompt-page{
  background: transparent !important;
  padding: 16px 12px !important;
}

.ea-prompt-page .ea-prompt-card{
  max-width: 560px;
  margin: 0 auto;
  background: #181818 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-sizing: border-box;
}

.ea-prompt-page .ea-title{
  font-size: 22px !important;
  margin: 4px 0 8px !important;
}


/* -----------------------------------------------------
   History Page — match Profile look & feel
   Shortcode: [ea_history]
----------------------------------------------------- */

.ea-history-page{
  background: transparent !important;
  padding: 16px 12px !important;
}

.ea-history-page .ea-history-card{
  max-width: 980px;
  margin: 0 auto;
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 22px !important;
  padding: 22px !important;
  box-sizing: border-box;
}

.ea-history-page .ea-title{
  font-size: 44px !important;
  margin: 4px 0 8px !important;
}

.ea-history-page .ea-subtitle{
  margin: 0 0 14px !important;
  font-size: 20px !important;
  color: rgba(255,255,255,0.70) !important;
}

/* -----------------------------------------------------
   History Cards — clean UI (mobile + desktop)
   Replaces older table layout
----------------------------------------------------- */

.ea-history-cards{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.ea-history-item-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  box-sizing: border-box;
}

.ea-history-item-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0; /* allow ellipsis */
  flex: 1 1 auto;
}

.ea-history-item-icons{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ea-history-icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

.ea-history-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ea-history-icon.ea-history-icon-disabled{
  opacity: 0.35;
}

button.ea-history-icon{
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ea-history-item-text{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ea-history-item-title{
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ea-history-item-date{
  font-size: 11px;
  line-height: 1.1;
  color: rgba(255,255,255,0.70);
}

.ea-history-item-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ea-history-download-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #2d5bff;
  color: #fff !important;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 22px rgba(45,91,255,0.25);
  cursor: pointer;
}

.ea-history-download-btn:hover,
.ea-history-download-btn:focus{
  filter: brightness(1.06);
}

.ea-history-download-btn[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}

.ea-history-owned-label{
  font-size: 12px;
  line-height: 1.1;
  color: rgba(255,255,255,0.75);
}

@media (max-width: 520px){
  .ea-history-page{ padding: 14px 10px !important; }
  .ea-history-page .ea-history-card{ padding: 14px !important; border-radius: 14px !important; }
  .ea-history-page .ea-title{ font-size: 32px !important; }
  .ea-history-page .ea-subtitle{ font-size: 16px !important; }
  .ea-history-item-card{ padding: 12px 12px; border-radius: 18px; }
  .ea-history-icon{ width: 44px; height: 44px; border-radius: 16px; padding: 7px; }
  .ea-history-item-title{ font-size: 14px; }
  .ea-history-item-date{ font-size: 10px; }
  .ea-history-download-btn{ height: 42px; padding: 0 16px; font-size: 14px; }
}

.ea-history-table-wrap{
  /* Keep everything inside the card width (no horizontal scrolling) */
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 12px;
  border: 0 !important;
  background: transparent !important;
}

.ea-history-table{
  width: 100%;
  /* Theme overrides often add borders to table/td/th. We fully control borders here. */
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  min-width: 0 !important;
  background: transparent !important;
}

/* Kill any theme table borders inside the history component */
.ea-history-page .ea-history-table,
.ea-history-page .ea-history-table th,
.ea-history-page .ea-history-table td{
  border: 0 !important;
}

/* Row separator only (as requested) */
.ea-history-page .ea-history-table tbody tr{
  border-bottom: 1px solid rgb(130 130 130 / 65%) !important;
}

.ea-history-table thead th{
  text-align: left;
  padding: 8px 8px;
  border-bottom: 0 !important;
  color: rgba(255,255,255,0.70);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent !important;
  white-space: normal;
  word-break: break-word;
}

.ea-history-table tbody td{
  padding: 10px 8px;
  border-bottom: 0 !important;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  background: transparent !important;
}

/* File column layout */
.ea-history-filecell{ display:flex; flex-direction:column; gap: 8px; }
.ea-history-filethumbs{ display:flex; align-items:flex-start; gap: 10px; }
.ea-history-filestack{ display:inline-flex; flex-direction:column; gap: 6px; }
.ea-history-filelabel{ font-size: 11px; line-height: 1.2; color: rgba(255,255,255,0.70); }
.ea-history-graphstack{ display:inline-flex; flex-direction:column; gap: 6px; }
.ea-history-filemeta{ display:flex; flex-direction:column; gap: 4px; }
.ea-history-filename{ font-size: 11px; line-height: 1.2; color: rgba(255,255,255,0.70); }
.ea-history-filedate{ font-size: 10px; line-height: 1.2; color: rgba(255,255,255,0.55); }
.ea-history-viewlabel{ font-size: 11px; line-height: 1.2; color: rgba(255,255,255,0.70); }

.ea-history-th-download,
.ea-history-dlcell{ width: 120px; text-align:right; white-space: nowrap; vertical-align: top !important; }

/* Nudge download button down to align with the thumbnails row */
.ea-history-dlcell .ea-btn-mini{ margin-top: 18px !important; }

/* Mini buttons inside history cells */
.ea-history-page .ea-btn-mini{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: #EE1B3B !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ea-history-page .ea-btn-mini:hover,
.ea-history-page .ea-btn-mini:focus{
  filter: brightness(0.95);
}

.ea-history-page .ea-btn-mini[disabled],
.ea-history-page .ea-btn-mini.disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* Thumbnail blocks */
.ea-history-page .ea-thumb{
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.ea-history-page .ea-thumb-disabled{ opacity: .35; }

.ea-history-page .ea-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ea-history-page .ea-thumb-label{
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255,255,255,0.62);
  max-width: 160px;
  word-break: break-word;
}

@media (max-width: 640px){
  .ea-history-page .ea-history-card{ padding: 14px !important; }
  .ea-history-page .ea-title{ font-size: 20px !important; }
  .ea-history-table thead th{ padding: 7px 6px; font-size: 10px; }
  .ea-history-table tbody td{ padding: 8px 6px; font-size: 11px; }
  .ea-history-page .ea-btn-mini{ height: 28px; padding: 0 10px; font-size: 11px; }
  .ea-history-page .ea-thumb{ width: 36px; height: 36px; }
}

/* Smaller overall scale for narrow containers */
@media (max-width: 860px){
  .ea-history-page .ea-history-card{ padding: 14px !important; }
  .ea-history-page .ea-title{ font-size: 20px !important; }
  .ea-history-table thead th{ font-size: 10px; padding: 7px 6px; }
  .ea-history-table tbody td{ font-size: 11px; padding: 9px 6px; }
  .ea-history-page .ea-btn-mini{ height: 28px; font-size: 11px; padding: 0 10px; }
}

@media (max-width: 520px){
  .ea-history-table thead{ display:none; }

  /* Keep File + Download inline (no stacked cards) */
  .ea-history-th-download,
  .ea-history-dlcell{ width: 96px; }

  .ea-history-table tbody td{ padding: 8px 6px; font-size: 11px; }
  .ea-history-page .ea-btn-mini{ height: 26px; font-size: 11px; padding: 0 10px; }
  .ea-history-page .ea-thumb{ width: 34px; height: 34px; }
  .ea-history-filethumbs{ gap: 10px; }
}

/* Backtest view button reset */
.ea-history-page .ea-thumbbtn,
.ea-history-page .ea-thumbbtn:hover,
.ea-history-page .ea-thumbbtn:focus,
.ea-history-page .ea-thumbbtn:active{
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  text-align: left;
  box-shadow: none !important;
  outline: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}

/* Backtest modal — align with matte card */
.ea-bt-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ea-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ea-modal{
  max-width: 900px;
  width: 100%;
  background: #181818 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px;
  padding: 16px;
  color: #ffffff;
}

.ea-bt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.ea-bt-item img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Payment methods popup (History → Download) */
.ea-pay-modal, .ea-pay-modal *{
  font-family: "Google Sans", "Google Sans Text", Roboto, Arial, sans-serif;
}

.ea-pay-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ea-pay-modal .ea-pay-title{
  margin-top: 0;
  color: rgba(255,255,255,0.82);
}

.ea-pay-modal-card{
  position: relative;
}

.ea-pay-close{
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.ea-pay-close:hover{
  filter: brightness(1.12);
}

.ea-pay-top{
  margin-top: 4px;
  margin-bottom: 10px;
}

.ea-pay-amount{
  font-weight: 900;
  font-size: 34px;
  line-height: 1.1;
}

.ea-pay-amount-label{
  margin-top: 2px;
  font-weight: 800;
  color: rgba(255,255,255,0.65);
}

.ea-pay-coupon-wrap{
  margin-top: 10px;
  margin-bottom: 10px;
}
.ea-pay-coupon-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ea-pay-coupon-input{
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  /* Use strong, theme-resistant styling for readability */
  border: 1px solid rgba(0,0,0,0.18) !important;
  background: rgba(255,255,255,0.92) !important;
  color: rgba(0,0,0,0.92) !important;
  font-size: 16px !important;
  line-height: 1.2;
  min-height: 44px;
  outline: none;
}
.ea-pay-coupon-input::placeholder{
  color: rgba(0,0,0,0.45) !important;
}
.ea-pay-modal .ea-pay-coupon-apply{
  min-height: 44px;
  padding: 10px 14px;
  /* Light green Apply/Remove button (theme-resistant) */
  background: #05ff1d !important;
  color: #0b3d0b !important;
}
.ea-pay-coupon-msg{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}

/* Keep the Apply/Remove button aligned with the input */
.ea-pay-modal .ea-pay-coupon-apply{
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #05ff1d !important;
  color: #0b3d0b !important;
}
.ea-pay-original-line{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.ea-pay-modal .ea-pay-sub{
  margin-top: 6px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.65);
}

.ea-pay-methods{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ea-pay-method{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  color: #ffffff;
  text-align: left;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}

.ea-pay-method:hover{
  filter: brightness(1.07);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
}

.ea-pay-logo{
  padding: 11px 24px;
  width: 160px;
  min-width: 90px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 auto;
}

.ea-pay-logo img{
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.ea-pay-logo-fallback{
  font-weight: 900;
  font-size: 18px;
  color: #111111;
}

.ea-pay-label{
  font-weight: 800;
  font-size: 14px;
}

.ea-pay-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.ea-pay-actions .ea-btn{
  min-width: 120px;
}

.ea-history-page .ea-link{
  color: #ffffff;
  text-decoration: underline;
}

/* Title row with animated icon */
.ea-prompt-page .ea-title-row{
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.ea-prompt-page .ea-title-row .ea-title{
  margin: 0 !important;
}

.ea-prompt-page .ea-title-gif{
  /* Preserve aspect ratio so the GIF doesn't look squashed.
     Many themes apply global img rules; these !important rules override.
  */
  max-width: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  display: block !important;
  object-fit: contain !important;
}

.ea-prompt-page .ea-subtitle{
  margin-bottom: 16px !important;
}

.ea-prompt-page .ea-label{
  color: rgba(255,255,255,0.65) !important;
  text-transform:none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}

.ea-prompt-page .ea-input,
.ea-prompt-page textarea.ea-input,
.ea-prompt-page button.ea-input{
  background: #0D0D0D !important;
  background-color: #0D0D0D !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.92) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.ea-prompt-page .ea-input:focus,
.ea-prompt-page .ea-input:active{
  background: #0D0D0D !important;
  background-color: #0D0D0D !important;
  box-shadow: none !important;
}

/* Make the symbol dropdown toggle behave like an input even under theme button styles */
.ea-prompt-page .ea-dropdown-toggle{
  width: 100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  padding: 12px 12px !important;
  height: 42px !important;
  text-align:left !important;
  cursor:pointer !important;
  border-radius: 10px !important;
  -webkit-tap-highlight-color: transparent;
}

/* Button sizing consistency (match profile) */
.ea-prompt-page .ea-btn{
  height: 42px !important;
  font-size: 14px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
}

/* Dropdown menu background should be the "main dropdown background" */
.ea-prompt-page .ea-dropdown-menu{
  background: #0D0D0D !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 12px !important;
}

/* Remove the light-blue backgrounds behind each option (theme button styles) */
.ea-prompt-page .ea-dd-option{
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.ea-prompt-page .ea-dd-option:hover,
.ea-prompt-page .ea-dd-option:focus,
.ea-prompt-page .ea-dd-option:active{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Also neutralize any theme "button" color fills inside the dropdown */
.ea-prompt-page .ea-dd-group button,
.ea-prompt-page .ea-dropdown-menu button{
  background: transparent !important;
}

/* Prompt overlay + completion popup: match the same dark palette */
.ea-overlay-card,
.ea-popup-card{
  background: #181818 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
}
.ea-codebox{
  background: #0D0D0D !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* -----------------------------------------------------
   History Page — override strokes + align download (v1.5.7)
----------------------------------------------------- */
.ea-history-page .ea-history-table{
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

/* Nuke any theme borders/column strokes */
.ea-history-page .ea-history-table,
.ea-history-page .ea-history-table th,
.ea-history-page .ea-history-table td,
.ea-history-page .ea-history-table tr{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.ea-history-page .ea-history-table td + td,
.ea-history-page .ea-history-table th + th{
  border-left: 0 !important;
}

/* Only a light bottom rule per row */
.ea-history-page .ea-history-table tbody tr{
  border-bottom: 1px solid rgb(130 130 130 / 65%) !important;
}

.ea-history-page .ea-history-table thead th,
.ea-history-page .ea-history-table tbody td{
  background: transparent !important;
}

/* Keep download button aligned with the thumbnails row */
.ea-history-page .ea-history-table tbody td.ea-history-dlcell{
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding: 26px 8px 10px !important;
}

/* Thumbnails */
.ea-history-page .ea-thumb{
  width: 45px !important;
  height: 45px !important;
  border-radius: 10px !important;
}

@media (max-width: 640px){
  .ea-history-page .ea-thumb{ width: 45px !important; height: 45px !important; }
}


/* Payment success popup — keep Download Now text perfectly centered */
.eaur-success-btn .eaur-btn-text{
  display: inline-block;
  line-height: 1.2;
  transform: none;
}



/* ===== Backtest popup chart (History) ===== */
#ea-bt-modal .ea-modal{position:relative;}
#ea-bt-modal .ea-pay-close{position:absolute;top:12px;right:12px;z-index:5;}
#ea-bt-modal .ea-bt-chart-wrap{margin-bottom:10px;}
#ea-bt-modal .ea-bt-chart-title{font-weight:700;letter-spacing:.2px;}
#ea-bt-modal .ea-muted{opacity:.75;font-size:13px;}
#ea-bt-modal .ea-bt-canvas-wrap{
  background:#141414;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:0;
  box-shadow:none;
  height:300px;
  position:relative;
  overflow:hidden;
}
#ea-bt-modal #ea-bt-chart{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;}
#ea-bt-modal .ea-bt-fallback{position:absolute;inset:0;width:100%;height:100%;}

#ea-bt-modal .ea-bt-canvas-wrap .ea-bt-chart-status{position:absolute;top:6px;left:10px;z-index:4;margin:0;pointer-events:none;}
#ea-bt-modal .ea-bt-fallback-img{width:100%;height:100%;object-fit:contain;border-radius:12px;display:block;}
#ea-bt-modal .ea-bt-grid{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;}
#ea-bt-modal .ea-bt-item img{width:100%;height:100px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,0.10);}

#ea-bt-modal .ea-bt-modal-card h3{display:none !important;}