/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/* ----------------------------------------------------
STYLE SHEET FOR THE MU-PLUGIN MEMBERS-PROFITS
--------------------------------------------------------*/

.mp-dashboard {
  margin: 2rem auto;
  padding: 1.75rem 1.5rem;
  max-width: 1040px;
  width: 100%;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.arec-overview {
  background: #000000;
  color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(156, 129, 76, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 18px 45px -25px rgba(255, 255, 255, 0.12);
}

.arec-overview__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(156, 129, 76, 0.35);
}

.arec-overview__charts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arec-chart-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(156, 129, 76, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.arec-chart-block__texts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.arec-chart-block__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c814c;
}

.arec-chart-block__helper {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.arec-chart-block__canvas {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arec-chart-block__placeholder,
.arec-chart-block__empty {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.arec-chart {
  width: 100%;
  height: auto;
}

.arec-chart text {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.arec-overview h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c814c;
}

.mp-dashboard h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #9c814c;
}

.arec-overview .mp-investment-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-investment-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.arec-overview .mp-investment-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(156, 129, 76, 0.35);
  min-height: 100%;
}

.arec-overview .mp-investment-card:hover,
.arec-overview .mp-investment-card:focus-within {
  border-color: rgba(156, 129, 76, 0.6);
  transform: translateY(-2px);
}

.arec-overview .mp-investment-card--total {
  border-color: rgba(156, 129, 76, 0.65);
  box-shadow: 0 0 0 1px rgba(156, 129, 76, 0.35);
}

.mp-investment-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c814c;
}

.arec-overview .mp-investment-helper {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.arec-overview .mp-investment-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #9c814c;
  line-height: 1.2;
  word-break: break-word;
}

.arec-overview__profits {
  border-top: 1px solid rgba(156, 129, 76, 0.35);
  padding-top: 1.5rem;
}

@media (max-width: 782px) {
  .mp-dashboard {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

  .arec-overview {
    gap: 1.5rem;
  }

  .arec-overview .mp-investment-value {
    font-size: 1.6rem;
  }
}

@media (min-width: 992px) {
  .arec-overview {
    padding: 2.5rem 3rem;
    gap: 2.5rem;
  }

  .arec-overview__charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .arec-overview .mp-investment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Weekly profits: mobile-first stacked layout */
.arec-profits {
  background: #000000;
  color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arec-overview__profits.arec-profits {
  margin: 0;
}

.arec-profits h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #9c814c;
}

.arec-profits .mp-weekly-profit-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(156, 129, 76, 0.08);
  border-left: 3px solid rgba(156, 129, 76, 0.5);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.arec-profits__empty {
  margin: 0;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.arec-profits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.arec-profits__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(156, 129, 76, 0.35);
}

.arec-profits__item:last-child {
  border-bottom: none;
}

.arec-profits__week {
  font-weight: 600;
  color: #9c814c;
  line-height: 1.5;
  flex: 0 0 auto;
}

.arec-profits__details {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.arec-profits__updated {
  font-weight: 500;
}

.arec-profits__note {
  color: rgba(255, 255, 255, 0.75);
}

.arec-profits__separator {
  color: rgba(255, 255, 255, 0.6);
}

.arec-profits__amount {
  font-weight: 700;
  color: #9c814c;
}

.arec-profits__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(156, 129, 76, 0.5);
}

.arec-profits__total-label {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.arec-profits__total-amount {
  font-weight: 700;
  color: #9c814c;
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .arec-profits {
    padding: 2rem;
    gap: 1.25rem;
  }

  .arec-profits h3 {
    font-size: 1.25rem;
  }

  .arec-profits__item {
    padding: 1.25rem 0;
  }

  .arec-profits__week {
    font-size: 1.05rem;
  }

  .arec-profits__details {
    font-size: 1rem;
  }

  .arec-profits__total-label {
    font-size: 1rem;
  }

  .arec-profits__total-amount {
    font-size: 1.15rem;
  }
}

/* Admin specific tweaks */
.mp-investment-summary--admin {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.mp-investment-summary--admin .mp-investment-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: none;
}

.mp-investment-summary--admin .mp-investment-card--total {
  background: linear-gradient(140deg, rgba(34, 197, 94, 0.18), rgba(134, 239, 172, 0.22));
  border-color: rgba(22, 163, 74, 0.35);
}

.mp-investment-summary--admin .mp-investment-label {
  color: #334155;
}

.mp-investment-summary--admin .mp-investment-card--total .mp-investment-label {
  color: #047857;
}

.mp-investment-summary--admin .mp-investment-card--total .mp-investment-value {
  color: #065f46;
}

.mp-investment-summary--admin .mp-investment-value {
  color: #0f172a;
}

/* Ensure admin notices and tables retain WP styling */
.wrap .mp-table {
  box-shadow: none;
  border: 1px solid #d1d5db;
  background: #fff;
}

.wrap .mp-table th,
.wrap .mp-table td {
  border-color: #d1d5db;
}

.wrap .mp-table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.wrap .mp-table tbody tr:nth-child(even) {
  background: #eef2ff;
}

.wrap .mp-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.15);
}

.wrap .mp-table tfoot {
  background: #e2e8f0;
}

/* ============================
   AREC – MemberPress Account Form restyle
   ============================ */

/* Theme tokens (tweak if needed) */
form#mepr_account_form.mepr-account-form {
	--arec-gold: #c6a86b;        /* your gold */
	--arec-text: #e7e2d6;        /* light text on dark bg */
	--arec-muted: rgba(231,226,214,.55);
	--arec-error: #ff6b6b;
	--arec-border: rgba(198,168,107,.45);
	--arec-border-strong: rgba(198,168,107,.9);
	--arec-radius: 10px;
	--arec-gap: 22px;
}

/* Container */
form#mepr_account_form.mepr-account-form {
	max-width: 760px;  /* keep it readable like your other forms */
	margin: 0 auto 2rem auto;
}

/* Each row */
form#mepr_account_form.mepr-account-form .mp-form-row {
	display: block;
	margin: var(--arec-gap) 0;
}

/* Labels */
form#mepr_account_form.mepr-account-form .mp-form-label {
	display: block;
	margin: 0 0 8px 0;
	font-weight: 600;
	color: var(--arec-text);
	line-height: 1.3;
}

/* Inputs / selects / textareas – underline style */
form#mepr_account_form.mepr-account-form .mepr-form-input,
form#mepr_account_form.mepr-account-form input[type="text"],
form#mepr_account_form.mepr-account-form input[type="email"],
form#mepr_account_form.mepr-account-form input[type="tel"],
form#mepr_account_form.mepr-account-form input[type="password"],
form#mepr_account_form.mepr-account-form select,
form#mepr_account_form.mepr-account-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--arec-border);
	border-radius: 0;
	padding: .6rem 0 .5rem;
	color: var(--arec-text);
	box-shadow: none;
	outline: none;
}

/* Placeholder + subtle help text color */
form#mepr_account_form.mepr-account-form ::placeholder { color: var(--arec-muted); opacity: 1; }

/* Focus */
form#mepr_account_form.mepr-account-form input:focus,
form#mepr_account_form.mepr-account-form select:focus,
form#mepr_account_form.mepr-account-form textarea:focus {
	border-bottom-color: var(--arec-border-strong);
}

/* Select polish */
form#mepr_account_form.mepr-account-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--arec-text) 50%),
	                  linear-gradient(135deg, var(--arec-text) 50%, transparent 50%);
	background-position: calc(100% - 18px) 1.05em, calc(100% - 12px) 1.05em;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 28px;
}

/* Error text (inline under label) */
form#mepr_account_form.mepr-account-form .cc-error {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--arec-error);
}

/* Optional: highlight invalid fields */
form#mepr_account_form.mepr-account-form input:invalid,
form#mepr_account_form.mepr-account-form select:invalid,
form#mepr_account_form.mepr-account-form textarea:invalid {
	border-bottom-color: var(--arec-error);
}

/* Submit button – match your outline gold button */
form#mepr_account_form.mepr-account-form .mepr-submit {
	background: transparent;
	border: 2px solid var(--arec-gold);
	color: var(--arec-gold);
	padding: .65rem 1.15rem;
	border-radius: var(--arec-radius);
	font-weight: 600;
	letter-spacing: .2px;
	cursor: pointer;
	transition: all .18s ease;
	display: inline-block;
}
form#mepr_account_form.mepr-account-form .mepr-submit:hover,
form#mepr_account_form.mepr-account-form .mepr-submit:focus {
	background: var(--arec-gold);
	color: #111;
}

/* Hide the tiny loading gif (keep layout clean) */
form#mepr_account_form.mepr-account-form .mepr-loading-gif { display: none !important; }

/* Extra spacing cleanup */
form#mepr_account_form.mepr-account-form .mepr_spacer { display: none; }

/* ---------- Responsive polish ---------- */

/* Compact spacing on small screens */
@media (max-width: 480px) {
	form#mepr_account_form.mepr-account-form { padding: 0 .5rem; }
	form#mepr_account_form.mepr-account-form .mp-form-row { margin: 18px 0; }
}

/* Optional: put first/last name side-by-side on wider screens */
@media (min-width: 800px) {
	form#mepr_account_form.mepr-account-form .mepr_first_name,
	form#mepr_account_form.mepr-account-form .mepr_last_name {
		display: inline-block;
		width: calc(50% - 12px);
		vertical-align: top;
	}
	form#mepr_account_form.mepr-account-form .mepr_first_name { margin-right: 18px; }
}

/* --- Soften validation visuals on MemberPress account form --- */

/* Remove red background / glow */
form#mepr_account_form.mepr-account-form input:invalid,
form#mepr_account_form.mepr-account-form select:invalid,
form#mepr_account_form.mepr-account-form textarea:invalid,
form#mepr_account_form.mepr-account-form .mepr-form-input.mepr_error {
	background: transparent !important;
	box-shadow: none !important;
}

/* Keep just a subtle underline change on invalid (when not focused) */
form#mepr_account_form.mepr-account-form input:invalid:not(:focus),
form#mepr_account_form.mepr-account-form select:invalid:not(:focus),
form#mepr_account_form.mepr-account-form textarea:invalid:not(:focus),
form#mepr_account_form.mepr-account-form .mepr-form-input.mepr_error:not(:focus) {
	border-bottom-color: var(--arec-border-strong) !important; /* gentle, not alarming */
}

/* When focused, use your gold underline (already defined earlier) */
form#mepr_account_form.mepr-account-form input:focus,
form#mepr_account_form.mepr-account-form select:focus,
form#mepr_account_form.mepr-account-form textarea:focus {
	background: transparent !important;
	box-shadow: none !important;
}

/* Some themes add red via wrapper classes; neutralize those too */
form#mepr_account_form.mepr-account-form .mepr-error,
form#mepr_account_form.mepr-account-form .mepr-invalid {
	background: transparent !important;
	box-shadow: none !important;
}

/* Keep the small red helper text only */
form#mepr_account_form.mepr-account-form .cc-error {
	color: var(--arec-error);
}
/* ——— Keep brand gold; remove all red borders/outlines on invalid ——— */
form#mepr_account_form.mepr-account-form input:invalid,
form#mepr_account_form.mepr-account-form select:invalid,
form#mepr_account_form.mepr-account-form textarea:invalid,
form#mepr_account_form.mepr-account-form .mepr-form-input.mepr_error {
	/* kill theme/browser red */
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	border: none !important;
	/* keep ONLY the gold underline */
	border-bottom: 1px solid var(--arec-border-strong) !important;
}

/* Some themes add a red full border via wrapper classes—neutralize */
form#mepr_account_form.mepr-account-form .mepr-error,
form#mepr_account_form.mepr-account-form .mepr-invalid {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

/* Focus stays gold (no red) */
form#mepr_account_form.mepr-account-form input:focus,
form#mepr_account_form.mepr-account-form select:focus,
form#mepr_account_form.mepr-account-form textarea:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	border-bottom: 1px solid var(--arec-border-strong) !important;
}
/* Hide all inline errors by default */
form#mepr_account_form.mepr-account-form .cc-error{ display:none; }

/* Show error after the user touched the field and it's invalid */
form#mepr_account_form.mepr-account-form .mp-form-row.mp-touched.mp-invalid .cc-error{ display:block; }

/* Show error after submit attempt if still invalid */
form#mepr_account_form.mepr-account-form.mp-validated .mp-form-row.mp-invalid .cc-error{ display:block; }


/* Make MemberPress alerts readable on dark background (Membership pages only) */
body.single-memberpressproduct .mepr_wrapper > .mepr_error{
	background:#2b0a0e !important;       /* deep red panel for dark UIs */
	border:1px solid #ff5a6b !important;  /* brighter border */
	color:#ffe9ec !important;             /* high-contrast text */
	padding:12px 16px !important;
	border-radius:6px;
	font-weight:600;
	box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
}
body.single-memberpressproduct .mepr_wrapper > .mepr_error a{
	color:#ffd1d7 !important;
	text-decoration:underline;
}

/* Optional: add an icon */
body.single-memberpressproduct .mepr_wrapper > .mepr_error::before{
	content:"⚠ ";
	font-weight:700;
	margin-right:.25rem;
}

/* If you also want the green success notice to pop on dark */
body.single-memberpressproduct .mepr_wrapper > .mepr_updated{
	background:#0f2a19 !important;
	border:1px solid #4ee38e !important;
	color:#e6fff1 !important;
}


/* MemberPress membership submit button */
#mepr_signup_form .mp-form-submit input.mepr-submit[type="submit"],
.mepr-signup-form .mp-form-submit input.mepr-submit[type="submit"]{
	appearance:none;
	background:transparent !important;
	color:#d7b56d !important;
	border:2px solid #d7b56d !important;
	border-radius:8px !important;
	padding:10px 22px !important;
	font-weight:700 !important;
	font-size:18px !important;
	line-height:1.2 !important;
	display:inline-block !important;
	cursor:pointer;
	transition:transform .08s ease-out, background-color .15s, color .15s, box-shadow .15s !important;
}

#mepr_signup_form .mp-form-submit input.mepr-submit[type="submit"]:hover,
.mepr-signup-form .mp-form-submit input.mepr-submit[type="submit"]:hover{
	background:#d7b56d !important;
	color:#000 !important;
	box-shadow:0 6px 20px rgba(215,181,109,.2), 0 0 0 1px #d7b56d inset !important;
}

#mepr_signup_form .mp-form-submit input.mepr-submit[disabled],
.mepr-signup-form .mp-form-submit input.mepr-submit[disabled]{
	opacity:.55 !important;
	cursor:not-allowed !important;
}

/* Changing the background color of the divi tabs and removing the borders) */
ul.et_pb_tabs_controls
Specificity: (0,1,1)
 {
    background-color: transparent !important;
}
.et_pb_tabs_0.et_pb_tabs.et_pb_module.preset--group--divi-tabs--divi-font-body--default
Specificity: (0,4,0)
 {
    border-color: transparent !important;
}
ul.et_pb_tabs_controls {
    background-color: transparent !important;
}