/* Plot Hive Cinematic UI 1.0.0
   Design-only, additive frontend styling. No page repositioning or visibility changes.
   It intentionally avoids the site header, footer, admin bar, wallet and payment widgets.
 */
body.phui-enabled{
  --phui-ink:#0b0a09;
  --phui-card:#171411;
  --phui-card-deep:#100e0c;
  --phui-gold:#f0ba59;
  --phui-gold-light:#ffe1a0;
  --phui-muted:#d6c7af;
  --phui-line:rgba(230,168,63,.6);
  --phui-glow:0 0 0 1px rgba(250,195,99,.2),0 0 24px rgba(227,155,43,.19),0 16px 36px rgba(0,0,0,.45);
  color:#f7f3eb;
}
/* Readable typography in plugin content; keep headers, footer, fixed widgets untouched. */
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.pmpro_card,.pmpro_account,.pmpro_checkout,.pmpro_level,.ur-frontend-form,.user-registration,.wpcf7,.phui-movie-ticket){
  color:#f6f0e5;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.pmpro_card,.pmpro_account,.pmpro_checkout,.pmpro_level,.ur-frontend-form,.user-registration,.wpcf7,.phui-movie-ticket) :is(h1,h2,h3,h4,h5,h6,legend){
  color:#fff9ed!important;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.pmpro_card,.pmpro_account,.pmpro_checkout,.pmpro_level,.ur-frontend-form,.user-registration,.wpcf7,.phui-movie-ticket) :is(p,span,div,label,li,small,dd,dt,strong){
  color:inherit;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.pmpro_card,.pmpro_account,.pmpro_checkout,.pmpro_level,.ur-frontend-form,.user-registration,.wpcf7,.phui-movie-ticket) a:not(.button):not(.btn):not(.pmpro_btn):not(.ur-submit-button){
  color:#f3c677;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.pmpro_card,.pmpro_account,.pmpro_checkout,.pmpro_level,.ur-frontend-form,.user-registration,.wpcf7,.phui-movie-ticket) a:hover:not(.button):not(.btn){color:#ffe2ac;}

/* Main dark cards. Explicit plugin wrappers only. Do NOT recolor every generic div. */
body.phui-enabled :is(
 .pmpro_card,.pmpro_level,.pmpro_levels_table,.pmpro_checkout-fields,
 .pmpro_checkout-fieldset,.pmpro_checkout-field-wrap,.pmpro_order,
 .pmpro_account-membership-levels,.pmpro_account-profile,
 .pmpro_account-invoices,.pmpro_account-membership-cancel,
 .pmpro_member_profile_edit_wrap,
 .ur-frontend-form,.user-registration-MyAccount-content,.user-registration-MyAccount-navigation,
 .ur-myaccount-content,.ur-registration-form,.ur-profile-form,
 .pmpro_box,.pmpro_checkout h3 + .pmpro_checkout-fields
 ){
  background:linear-gradient(148deg,rgba(29,24,19,.97),rgba(10,10,10,.97))!important;
  border:1px solid var(--phui-line)!important;
  border-radius:16px!important;
  box-shadow:var(--phui-glow)!important;
  color:#f7f0e4!important;
}
/* Membership account titles and nested sections */
body.phui-enabled .pmpro_card :is(.pmpro_card_title,.pmpro_card_content,.pmpro_card_actions),
body.phui-enabled .pmpro_level :is(.pmpro_level-name,.pmpro_level-description),
body.phui-enabled :is(.pmpro_card_content,.pmpro_card_actions,.pmpro_card_header,.pmpro_card_footer){
  background-color:transparent!important;
  color:#f5eee1!important;
  border-color:rgba(243,187,96,.24)!important;
}
body.phui-enabled :is(.pmpro_card,.pmpro_box,.pmpro_level,.ur-frontend-form) :is(p,li,span,small,label,dt,dd),
body.phui-enabled :is(#pmpro_account,.pmpro_checkout,.pmpro_levels_table) :is(p,li,span,small,label,dt,dd){
  color:#f0e8db!important;
  opacity:1!important;
}
body.phui-enabled :is(.pmpro_card,.pmpro_box,.pmpro_level,.ur-frontend-form,#pmpro_account,.pmpro_checkout) :is(h2,h3,h4,strong,b){
  color:#fff9ed!important;
  opacity:1!important;
}
body.phui-enabled :is(.pmpro_card,.pmpro_box,.pmpro_level) a{color:#f0bb62!important;}
body.phui-enabled :is(.pmpro_card,.pmpro_box,.pmpro_level) a:hover{color:#ffe0a7!important;}

/* PMPro legacy-style account boxes and checkout areas from the screenshots. */
body.phui-enabled.phui-membership :is(
 #pmpro_account .pmpro_box,#pmpro_account .pmpro_card,
 #pmpro_account-membership,#pmpro_account-profile,#pmpro_account-invoices,
 #pmpro_account .pmpro_account-membership-levels,
 #pmpro_checkout .pmpro_checkout-fields,#pmpro_checkout .pmpro_box,
 #pmpro_checkout #pmpro_pricing_fields,#pmpro_checkout #pmpro_user_fields,
 #pmpro_checkout #pmpro_payment_information_fields,
 #pmpro_levels .pmpro_level,#pmpro_levels .pmpro_card
 ){
  background:linear-gradient(140deg,rgba(31,24,17,.97),rgba(12,11,10,.98))!important;
  border:1px solid rgba(236,177,81,.54)!important;
  border-radius:15px!important;
  color:#f8efe4!important;
  box-shadow:var(--phui-glow)!important;
}
body.phui-enabled.phui-membership #pmpro_account .pmpro_box > :is(h2,h3,h4){
  border-bottom:1px solid rgba(236,177,81,.34)!important;
  padding-bottom:10px;
}
/* Keep table accessibility and status labels. */
body.phui-enabled :is(.pmpro_table,.pmpro_account table,.pmpro_checkout table,#pmpro_account table,#pmpro_checkout table,.ur-frontend-form table){
  background:rgba(9,9,9,.92)!important;
  color:#f7f0e4!important;
  border:1px solid rgba(234,177,81,.37)!important;
  border-collapse:separate;
  border-spacing:0;
  border-radius:10px;
  overflow:hidden;
}
body.phui-enabled :is(.pmpro_table,.pmpro_account table,.pmpro_checkout table,#pmpro_account table,#pmpro_checkout table,.ur-frontend-form table) :is(th,td){
  background:transparent!important;
  color:#f7f0e4!important;
  border-color:rgba(232,174,82,.26)!important;
}
body.phui-enabled :is(.pmpro_table,.pmpro_account table,.pmpro_checkout table,#pmpro_account table,#pmpro_checkout table) thead th{
  color:var(--phui-gold-light)!important;
  background:rgba(76,51,21,.28)!important;
}
body.phui-enabled :is(.pmpro_table,.pmpro_account table,.pmpro_checkout table,#pmpro_account table,#pmpro_checkout table) tbody tr:nth-child(even){background:rgba(255,200,108,.035)!important;}

/* User Registration 5.x and its My Account form. */
body.phui-enabled :is(.ur-frontend-form,.user-registration-MyAccount-content,.ur-myaccount-content,.user-registration){
  --ur-color-primary:#edb555;
  --ur-color-text:#f3ebdf;
}
body.phui-enabled .ur-frontend-form :is(.ur-form-row,.ur-form-grid,.ur-field-item,.ur-form-group,.ur-field-wrapper,.ur-button-container,.ur-user-form){
  background-color:transparent!important;
  color:#f6eedf!important;
}
body.phui-enabled :is(.user-registration-MyAccount-navigation ul,.user-registration-MyAccount-navigation li,.user-registration-MyAccount-navigation a){
  background-color:transparent!important;
  color:#f0c67c!important;
  border-color:rgba(240,184,87,.28)!important;
}
body.phui-enabled :is(.ur-frontend-form,.user-registration,.ur-myaccount-content) :is(.description,.ur-description,.ur-label,.ur-form-label,.ur-form-label>label){color:#f6eedd!important;opacity:1!important;}
body.phui-enabled :is(.ur-frontend-form,.user-registration,.ur-myaccount-content) :is(.ur-message,.ur-success,.ur-info){
  background:rgba(38,30,22,.95)!important;
  border:1px solid rgba(238,181,84,.5)!important;
  color:#f7edda!important;
  border-radius:12px;
}

/* Shared form fields -- do NOT style StripeElements or hosted payment iframes. */
body.phui-enabled.phui-forms :is(
 .pmpro,.pmpro_wrapper,#pmpro_checkout,#pmpro_account,
 .ur-frontend-form,.user-registration,.ur-myaccount-content,
 .wpcf7-form,.phui-contact-scope
) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file]),select,textarea){
  appearance:auto;
  background:#11100e!important;
  background-image:none!important;
  color:#fff9ef!important;
  caret-color:#f8c975!important;
  border:1px solid rgba(242,185,86,.6)!important;
  border-radius:8px!important;
  box-shadow:inset 0 1px 8px rgba(0,0,0,.38),0 0 0 1px rgba(255,219,150,.035)!important;
  text-shadow:none!important;
  opacity:1!important;
  max-width:100%;
  min-height:42px;
}
body.phui-enabled.phui-forms :is(.pmpro,.pmpro_wrapper,#pmpro_checkout,#pmpro_account,.ur-frontend-form,.user-registration,.ur-myaccount-content,.wpcf7-form) :is(input,textarea)::placeholder{
  color:#b7aa96!important;
  opacity:1!important;
}
body.phui-enabled.phui-forms :is(.pmpro,.pmpro_wrapper,#pmpro_checkout,#pmpro_account,.ur-frontend-form,.user-registration,.ur-myaccount-content,.wpcf7-form) :is(input,select,textarea):focus-visible{
  outline:2px solid #ffd991!important;
  outline-offset:1px;
  border-color:#ffd991!important;
  box-shadow:0 0 0 3px rgba(238,183,89,.23),0 0 19px rgba(234,174,78,.2)!important;
}
body.phui-enabled.phui-forms :is(.pmpro,.pmpro_wrapper,#pmpro_checkout,#pmpro_account,.ur-frontend-form,.user-registration,.ur-myaccount-content,.wpcf7-form) :is(select option){background:#15120e!important;color:#fff6e8!important;}
body.phui-enabled.phui-forms :is(.pmpro,.pmpro_wrapper,#pmpro_checkout,#pmpro_account,.ur-frontend-form,.user-registration,.ur-myaccount-content,.wpcf7-form) :is(input[type=checkbox],input[type=radio]){
  accent-color:#e9b453;
}
body.phui-enabled :is(.wpcf7-form,.pmpro_form,.ur-frontend-form,.user-registration) :is(label,.pmpro_label,.ur-label){color:#f5ede1!important;opacity:1!important;}
body.phui-enabled :is(.wpcf7-form,.pmpro_form,.ur-frontend-form,.user-registration) :is(.required,.pmpro_asterisk,.ur-required){color:#ffd48a!important;}

/* Gold action buttons; no payment functionality is changed. */
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.ur-frontend-form,.user-registration,.wpcf7-form) :is(
 input[type=submit],button[type=submit],.pmpro_btn,.pmpro_btn-submit,.ur-submit-button,
 .user-registration-submit-Button,.button-primary,.ur-button,.wpcf7-submit
),
body.phui-enabled.phui-contact :is(.entry-content,.page-content,.wpb_wrapper) :is(input[type=submit],button[type=submit]){
  background:linear-gradient(135deg,#ffdc8d 0%,#e6ae48 54%,#d9962c 100%)!important;
  border:1px solid #ffd17a!important;
  color:#211405!important;
  border-radius:9px!important;
  font-weight:750!important;
  letter-spacing:.01em;
  text-shadow:none!important;
  box-shadow:0 5px 18px rgba(212,135,35,.25),inset 0 1px 0 rgba(255,255,255,.3)!important;
  cursor:pointer;
  opacity:1;
  transition:box-shadow .18s ease,filter .18s ease,transform .18s ease;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.ur-frontend-form,.user-registration,.wpcf7-form) :is(input[type=submit],button[type=submit],.pmpro_btn,.ur-submit-button,.wpcf7-submit):not(:disabled):hover,
body.phui-enabled.phui-contact :is(.entry-content,.page-content,.wpb_wrapper) :is(input[type=submit],button[type=submit]):not(:disabled):hover{
  filter:brightness(1.08);
  transform:translateY(-1px);
  box-shadow:0 9px 24px rgba(228,152,40,.42),0 0 22px rgba(228,152,40,.2)!important;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.ur-frontend-form,.user-registration,.wpcf7-form) :is(input[type=submit],button[type=submit],.pmpro_btn,.ur-submit-button,.wpcf7-submit):disabled{
  cursor:not-allowed!important;
  opacity:.55!important;
  filter:grayscale(.6)!important;
}
body.phui-enabled :is(.pmpro,.pmpro_wrapper,.ur-frontend-form,.user-registration,.wpcf7-form) :is(button,a,input):focus-visible{
  outline:2px solid #ffe3a7!important;
  outline-offset:3px;
}
/* Preserve meaningful error/success messaging instead of hiding validation issues. */
body.phui-enabled :is(.wpcf7-not-valid-tip,.pmpro_error,.pmpro_message.pmpro_error,.ur-error){color:#ff9f99!important;opacity:1!important;}
body.phui-enabled .wpcf7-response-output{border-color:#ecba64!important;background:rgba(26,20,13,.93)!important;color:#fff3da!important;border-radius:10px!important;}
body.phui-enabled .pmpro_message:not(.pmpro_error){color:#e8e4d8!important;background:rgba(26,20,13,.94)!important;border:1px solid rgba(234,174,75,.45)!important;border-radius:12px!important;}

/* Support and Contact forms: the existing cinematic background remains. */
body.phui-enabled.phui-contact :is(.wpcf7,.wpcf7-form,.contact-form,.contact-form-7,.contact-form-wrapper){color:#fff4e2!important;}
body.phui-enabled.phui-contact :is(.wpcf7-form,.contact-form,.contact-form-7) :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  background:#12100e!important;
  color:#fff7e6!important;
  border:1px solid rgba(245,184,79,.65)!important;
  border-radius:9px!important;
  box-shadow:inset 0 2px 10px #0006,0 0 0 1px #f9d99b0a!important;
  min-height:44px;
}
body.phui-enabled.phui-contact :is(.wpcf7-form,.contact-form,.contact-form-7) :is(input,textarea)::placeholder{color:#bdae97!important;opacity:1!important;}
body.phui-enabled.phui-contact :is(.wpcf7-form,.contact-form,.contact-form-7) textarea{min-height:110px!important;}

/* Film tickets. Marker is added only to compact cards in the Movies listing. */
body.phui-enabled.phui-movies .phui-movie-ticket{
  position:relative;
  isolation:isolate;
  min-width:0;
  background:linear-gradient(145deg,rgba(45,31,18,.97),rgba(10,10,10,.98) 70%)!important;
  border:1px solid rgba(244,181,73,.78)!important;
  border-radius:16px!important;
  padding:14px!important;
  color:#fff7ea!important;
  box-shadow:0 16px 34px rgba(0,0,0,.52),0 0 22px rgba(225,149,39,.22),inset 0 0 0 1px rgba(255,210,125,.15)!important;
  transition:transform .22s ease,box-shadow .22s ease;
}
body.phui-enabled.phui-movies .phui-movie-ticket::before{
  content:"";
  position:absolute;
  inset:7px;
  border:1px dashed rgba(245,195,109,.47);
  border-radius:11px;
  z-index:0;
  pointer-events:none;
}
body.phui-enabled.phui-movies .phui-movie-ticket::after{
  content:"";
  position:absolute;
  top:24px;
  bottom:24px;
  right:0;
  width:4px;
  border-right:2px dotted rgba(252,204,114,.65);
  opacity:.75;
  pointer-events:none;
}
body.phui-enabled.phui-movies .phui-movie-ticket > *{position:relative;z-index:1;}
body.phui-enabled.phui-movies .phui-movie-ticket :is(img,.poster img,.movie-poster img,.movie-image img){
  display:block;
  border:1px solid rgba(250,210,139,.48)!important;
  border-radius:10px!important;
  box-shadow:0 7px 21px rgba(0,0,0,.46)!important;
  max-width:100%;
  height:auto;
}
body.phui-enabled.phui-movies .phui-movie-ticket :is(h2,h3,h4,.movie-title,.entry-title,a){color:#ffe0a1!important;}
body.phui-enabled.phui-movies .phui-movie-ticket :is(p,span,small,li){color:#e7dccb!important;opacity:1!important;}
body.phui-enabled.phui-movies .phui-movie-ticket:is(:hover,:focus-within){
  transform:translateY(-3px);
  box-shadow:0 20px 40px rgba(0,0,0,.58),0 0 30px rgba(230,166,56,.36)!important;
}
/* Prevent visual changes for movie players, ticket headers and PH Credits/payment widgets. */
body.phui-enabled :is(.phtb-ticket,.phv3-header,.phuh-header,#phv3,.phc-wallet,.phcn-bell,.StripeElement,.stripe-card-element,.woocommerce-payment-box){
  --phui-local-optout:1;
}
@media(max-width:720px){
  body.phui-enabled .phui-movie-ticket{padding:11px!important;}
  body.phui-enabled :is(.pmpro_card,.ur-frontend-form,.user-registration-MyAccount-content){border-radius:12px!important;}
  body.phui-enabled.phui-forms :is(.pmpro,.pmpro_wrapper,.ur-frontend-form,.user-registration,.wpcf7-form) :is(input,select,textarea){max-width:100%;}
}
@media(prefers-reduced-motion:reduce){
  body.phui-enabled :is(.phui-movie-ticket,.pmpro_btn,.ur-submit-button,.wpcf7-submit){transition:none!important;transform:none!important;}
}
