:root{

      --mx-brand:#0e3a46;

      --mx-text:#1f2a2a;

      --mx-white:#fff;

      --mx-glass-bg: rgba(255,255,255,0.50);

      --mx-glass-brd: rgba(255,255,255,0.55);

      --mx-overlay: rgba(0,0,0,0.25);

      --mx-shadow: 0 20px 60px rgba(0,0,0,0.22);

      --mx-radius: 16px;

    }

    *{box-sizing:border-box}

    body.public-shell{ margin:0; font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Helvetica Neue"; color:var(--mx-text); background:#000; }

    a{ color:var(--mx-white); text-decoration:none }

    a:hover{ text-decoration:underline }



    /* ========== БЛОК 2.0 – Фонова картинка ========== */

    #mx-bg{ position:fixed; inset:0; background:#0b0f10 center/cover no-repeat; z-index:-1; }

    #mx-bg::before{ content:""; position:absolute; inset:0; background:var(--mx-img, none) center/cover no-repeat; }

    #mx-bg::after{ content:""; position:absolute; inset:0; background:var(--mx-overlay); }

/* ========== БЛОК 4.0 – Съдържание и стъклен ефект (центриране) ========== */

#mx-content{

  min-height:100vh;

  display:grid;

  place-items:center;

  padding:24px;

}



/* Палитра за glass (лесно за донагласяне) */

:root{

  --mx-glass-bg: rgba(255,255,255,0.50);

  --mx-glass-brd: rgba(255,255,255,0.46);

  --mx-glass-blur: 12px;

  --mx-brand: #3e4c40;   /* бутоните */

  --mx-text:  #ffffff;   /* основен текст върху тъмен фон */

}



/* 4.1 – Стъклени обвивки (само реалните форми, не кореновия .pmpro) */

body:not(.mx-checkout-maxima) :is(

  .pmpro_login_wrap,

  .pmpro_checkout,

  .pmpro_levels,

  .pmpro_account,

  .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap,

  .pmpro_form                              /* fallback за някои шаблони */

){

  position: relative;

  padding: clamp(16px, 2.5vw, 32px) !important;

  border-radius: 20px;

}



/* 4.2 – Стъклена плоча (::before) — също само за горните обвивки  */

body:not(.mx-checkout-maxima) :is(

  .pmpro_login_wrap,

  .pmpro_checkout,

  .pmpro_levels,

  .pmpro_account,

  .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap,

  .pmpro_form

)::before{

  content: "";

  position: absolute; inset: 0;

  background: var(--mx-glass-bg);

  backdrop-filter: blur(var(--mx-glass-blur));

  -webkit-backdrop-filter: blur(var(--mx-glass-blur));

  border-radius: inherit;

  box-shadow: 0 8px 32px rgba(0,0,0,0.25);

  z-index: 0;

}



/* всичко вътре остава над стъклото */

body:not(.mx-checkout-maxima) :is(

  .pmpro_login_wrap,

  .pmpro_checkout,

  .pmpro_levels,

  .pmpro_account,

  .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap,

  .pmpro_form

) > *{ position: relative; z-index: 1; }



/* всичко вътре да е над стъклото */

body:not(.mx-checkout-maxima) :is(

  .pmpro,

  .pmpro_login_wrap,

  .pmpro_checkout,

  .pmpro_levels,

  .pmpro_account,

  .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap,

  .pmpro_form

) > *{ position:relative; z-index:1; }



/* 4.3 – Нулиране на “белите карти” вътре в PMPro блоковете */

body:not(.mx-checkout-maxima) :is(

  .pmpro,

  .pmpro_login_wrap,

  .pmpro_checkout,

  .pmpro_levels,

  .pmpro_account,

  .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap,

  .pmpro_form

) :is(

  .pmpro_card, .pmpro_actions_nav, .pmpro_message,

  .pmpro_section, .pmpro_table, fieldset, legend

){

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;

}



/* 4.4 – Четимост на тъмен фон */

body:not(.mx-checkout-maxima) :is(

  .pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_levels,

  .pmpro_account, .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap, .pmpro_form

) :is(h1,h2,h3,label,.pmpro_lost_password a,.pmpro_actions_nav a,

      .pmpro_show_password_wrap, .pmpro_show_password_wrap label){

  color: var(--mx-text) !important;

}



/* 4.5 – Полета */

body:not(.mx-checkout-maxima) :is(

  .pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_levels,

  .pmpro_account, .pmpro_confirmation, .pmpro_confirmation_wrap,

  .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

  .pmpro_member_profile_edit_wrap, .pmpro_form

) :is(input[type="text"], input[type="email"], input[type="password"],

      input[type="tel"], input[type="number"], select, textarea){

  background: rgba(255,255,255,0.22) !important;

  border:1px solid var(--mx-glass-brd) !important;

  color: var(--mx-text) !important;

}

body:not(.mx-checkout-maxima) :is(.pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_form)

  input::placeholder{ color: rgba(255,255,255,0.85) !important; }



/* 4.6 – Бутони (primary) — без „Покажи паролата“ */

body:not(.mx-checkout-maxima) :is(.pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_form)

  :is(

    input[type="submit"],

    button[type="submit"],

    .pmpro_btn

  )

  :not(.wp-hide-pw)

  :not(.pmpro_show_password_button)

  :not(.pmpro_btn-show-password)

  :not([type="button"])

  :not(.button-secondary){

  background: var(--mx-brand) !important;

  border: 0 !important;

  color: #fff !important;

  padding: 12px 20px !important;

  border-radius: 10px !important;

  transition: transform .15s ease, opacity .15s ease;

}



body:not(.mx-checkout-maxima) :is(.pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_form)

  :is(

    input[type="submit"],

    button[type="submit"],

    .pmpro_btn

  )

  :not(.wp-hide-pw)

  :not(.pmpro_show_password_button)

  :not(.pmpro_btn-show-password)

  :not([type="button"])

  :not(.button-secondary):hover{

  transform: translateY(-1px);

  opacity: .95;

}



/* 4.6.1 – Show Password: прозрачен бутон + син акцент */

.pmpro_show_password_wrap button,

.pmpro_show_password_wrap .button,

.pmpro_show_password_wrap .pmpro_btn,

button.wp-hide-pw,

.pmpro_login_wrap button.wp-hide-pw,

.pmpro_form button.wp-hide-pw{

  background: transparent !important;

  background-color: transparent !important; /* за всеки случай */

  color: var(--mx-accent, #0ea5ff) !important;

  border: 0 !important;

  box-shadow: none !important;

  padding: 0 !important;

  line-height: 1;

}



.pmpro_show_password_wrap label{

  color: var(--mx-accent, #0ea5ff) !important;

}



.pmpro_show_password_wrap button:focus,

button.wp-hide-pw:focus{

  outline: 2px solid currentColor;

  outline-offset: 2px;

}





/* 4.7 – Линк “Регистрация” (ако го показваш под login) */

#pmpro-register-link{ margin-top:20px; text-align:center; }

#pmpro-register-link .pmpro-register-btn{

  display:block; width:100%; max-width:100%; padding:12px 0; border-radius:10px;

  font-weight:600; text-align:center; text-decoration:none;

  background:rgba(255,255,255,0.7); color:#000;

  border:1px solid rgba(255,255,255,0.8);

  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);

  box-shadow:0 6px 18px rgba(0,0,0,0.15); transition: all .2s ease;

}

#pmpro-register-link .pmpro-register-btn:hover{

  background: rgba(255,255,255,0.9);

  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

}



/* 4.8 – Опционален “kill switch”: добави body клас .pmpro-glass-off за изключване */

.pmpro-glass-off

  :is(.pmpro, .pmpro_login_wrap, .pmpro_checkout, .pmpro_levels,

      .pmpro_account, .pmpro_confirmation, .pmpro_confirmation_wrap,

      .pmpro_billing, .pmpro_billing_wrap, .pmpro_billing_output,

      .pmpro_member_profile_edit_wrap, .pmpro_form)::before{

  display:none !important;

}

/* ========== Респонсив корекции (мобилен изглед) ========== */

@media (max-width: 768px){
  #mx-content{
    padding: 24px 16px;
  }
}
/* ============================================================
   MAXIMA – ПРАВНИ ДОКУМЕНТИ
   Стъклен контейнер за Privacy Policy, Общи условия и др.
   ============================================================ */

.mx-legal-glass {
    width: min(1200px, 92vw);
    margin: 90px auto 60px;
    padding: clamp(28px, 4vw, 56px);

    background: rgba(255, 255, 255, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;

    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #17252a;
}

/* Текстът в правните документи */
.mx-legal-glass p,
.mx-legal-glass li {
    color: #263336;
}

/* Заглавия */
.mx-legal-glass h1,
.mx-legal-glass h2,
.mx-legal-glass h3,
.mx-legal-glass h4 {
    color: #17252a;
}

/* Линкове */
.mx-legal-glass a {
    color: #0e3a46;
    text-decoration: underline;
}

/* Добра четимост на дълги документи */
.mx-legal-glass p,
.mx-legal-glass li {
    line-height: 1.7;
}

/* Мобилен изглед */
@media (max-width: 768px) {
    .mx-legal-glass {
        width: calc(100% - 28px);
        margin: 80px auto 40px;
        padding: 24px 20px;
        border-radius: 18px;
    }
}
