@charset "utf-8";

/*
Theme Name: Plus 1 Ads
Theme URI: https://plus1ads.com/
Description: Plus 1 Ads – refined light dashboard foundation. Calm, engineered, trustworthy, with controlled warmth.
Version: 2.6
Author: Jerry Iannucci
Template: themes/plus1ads
Tags: light, dashboard, analytics, clean, modern, premium
*/

/* =========================================================
   PLUS 1 ADS – GLOBAL STYLE SYSTEM
   ---------------------------------------------------------
   Built around the locked Plus 1 Ads philosophy:
   - light-first, calm, structured, professional
   - serious tool, not a gimmick
   - one dominant action per screen
   - warm highlights used sparingly for opportunity / emphasis
   - subtle depth for advanced / intelligence layers
   - page-specific hacks stay out of the global layer
   ========================================================= */

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  /* Core canvas */
  --bg-page: #f4f7fb;
  --bg-shell: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-soft-2: #f1f5f9;
  --bg-soft-3: #eaf0f7;
  --bg-accent-soft: #edf4ff;

  /* Surfaces */
  --surface-0: #ffffff;
  --surface-1: #fbfdff;
  --surface-2: #f6f9fd;
  --surface-3: #eef3fa;

  /* Text
     text-0: strongest headings / values
     text-1: normal body copy
     text-2: secondary copy
     text-3: readable muted copy
     text-4: faint / placeholder-only copy
  */
  --text-0: #0f172a;
  --text-1: #334155;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;

  /* Lines */
  --line-0: #e5eaf1;
  --line-1: #d6dee8;
  --line-2: #c4cfdd;
  --line-strong: #b5c3d5;
  --line-card: #dde5ef;

  /* Primary system accent */
  --accent-0: #2f6df6;
  --accent-1: #1f5be0;
  --accent-2: #eaf2ff;
  --accent-3: #dbe9ff;

  /* Jerry signature warmth */
  --brand-warm: #f59e0b;
  --brand-warm-soft: #fff6e8;
  --brand-warm-deep: #d97706;
  --brand-warm-line: #f3dfb0;

  /* Depth / intelligence */
  --brand-depth: #6d3dd6;
  --brand-depth-soft: #f3edff;
  --brand-depth-line: #dfd1ff;

  /* Utility */
  --good: #16a34a;
  --good-bg: #eaf8ef;
  --warn: #f59e0b;
  --warn-bg: #fff6e8;
  --bad: #dc2626;
  --bad-bg: #fdecec;
  --info: #2563eb;
  --info-bg: #eef4ff;

  /* Shadows / elevation
     xs = controls, sm = normal cards, md = emphasized surfaces,
     lg = overlays. Warm/blue shadows are reserved for actions.
  */
  --shadow-xs: 0 1px 2px rgba(16,24,40,.04);
  --shadow-sm: 0 4px 12px rgba(16,24,40,.05);
  --shadow-md: 0 12px 30px rgba(16,24,40,.07);
  --shadow-lg: 0 18px 45px rgba(16,24,40,.09);
  --shadow-warm: 0 14px 30px rgba(245,158,11,.22);
  --shadow-blue: 0 12px 28px rgba(47,109,246,.18);

  --shadow-control: var(--shadow-xs);
  --shadow-card: 0 1px 2px rgba(15,23,42,.035), 0 8px 24px rgba(15,23,42,.055);
  --shadow-elevated: var(--shadow-md);
  --shadow-overlay: var(--shadow-lg);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  /* Layout */
  --sidebar-w: 255px;
  --content-narrow: 760px;
  --content-standard: 1040px;
  --content-max: 1320px;
  --content-pad: clamp(14px, 2.2vw, 32px);
  --pad: 24px;
  --gap: 20px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Sidebar system */
  --sidebar-bg: #0f172a;
  --sidebar-bg-soft: #111c33;
  --sidebar-bg-deep: #0b1324;
  --sidebar-line: rgba(255,255,255,.08);
  --sidebar-line-soft: rgba(255,255,255,.05);
  --sidebar-text: #d9e3fb;
  --sidebar-text-soft: #aebddd;
  --sidebar-text-muted: #8295bc;
  --sidebar-hover: rgba(255,255,255,.045);
  --sidebar-active-a: rgba(47,109,246,.20);
  --sidebar-active-b: rgba(245,158,11,.18);
  --sidebar-glow: 0 16px 34px rgba(4,10,22,.34);

  /* Typography */
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 24px;
  --fs-3xl: 38px;

  --fw-regular: 500;
  --fw-medium: 600;
  --fw-semibold: 700;
  --fw-bold: 800;

  --focus: 0 0 0 4px rgba(47,109,246,.14);
  --focus-sidebar: 0 0 0 3px rgba(147,197,253,.28);
  --ease: cubic-bezier(.22,.9,.24,1);
  --duration-fast: 120ms;
  --duration-base: 160ms;

  color-scheme: light;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html,
body{
  height: 100%;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(980px 420px at 16% -12%, rgba(47,109,246,.075), transparent 66%),
    radial-gradient(760px 340px at 92% -12%, rgba(245,158,11,.035), transparent 68%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg-page) 100%);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: var(--accent-0);
  text-decoration: none;
  transition:
    color 160ms var(--ease),
    opacity 160ms var(--ease),
    border-color 160ms var(--ease),
    background 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

a:hover{
  color: var(--accent-1);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}

::selection{
  background: rgba(47,109,246,.18);
  color: var(--text-0);
}

h1,h2,h3,h4,h5,h6{
  margin: 0 0 10px;
  color: var(--text-0);
  line-height: 1.18;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1{ font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: -.03em; }
h2{ font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -.02em; }
h3{ font-size: var(--fs-xl);  font-weight: var(--fw-bold); }
h4{ font-size: var(--fs-lg);  font-weight: var(--fw-semibold); }
h5{ font-size: var(--fs-md);  font-weight: var(--fw-semibold); }
h6{ font-size: var(--fs-sm);  font-weight: var(--fw-semibold); }

p{
  margin: 0 0 14px;
  color: var(--text-1);
  text-wrap: pretty;
}

small,
.text-muted,
.ui-muted{
  color: var(--text-3) !important;
  font-size: var(--fs-sm);
}

hr{
  border: 0;
  border-top: 1px solid var(--line-0);
  margin: 18px 0;
}

/* LFM legacy text helpers */
.lfm_title{
  margin: 0 0 8px;
  color: var(--text-0);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.lfm_descr{
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.lfm_descr_bold{
  color: var(--text-0);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}

.ui-label{
  display: inline-block;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ui-value{
  color: var(--text-0);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
}

.vcenter{
  display: flex;
  align-items: center;
}

/* =========================================================
   APP SHELL
   ========================================================= */

.lfm_topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 84px;
  padding: 16px 18px;
  background:
    radial-gradient(520px 180px at 14% -40%, rgba(47,109,246,.07), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.88) 100%);
  border-bottom: 1px solid var(--line-0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.78),
    0 8px 22px rgba(15,23,42,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lfm_topbar::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(47,109,246,.34), rgba(47,109,246,.08) 54%, rgba(245,158,11,.20));
  pointer-events: none;
}

.lfm_topbar_inner{
  display: flex;
  align-items: center;
  width: 100%;
  gap: 14px;
}

.lfm_topbar_heading{
  min-width: 0;
}

.lfm_topbar_title{
  margin: 0;
  color: var(--text-0);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
}

.lfm_topbar_subtitle{
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
}

.lfm_topbar_actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lfm_slidebar_toggleswitch{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text-1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 6px 16px rgba(15,23,42,.06);
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
  position: relative;
  z-index: 120;
  flex: 0 0 44px;
}

.lfm_slidebar_toggleswitch:hover{
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border-color: #cfe0ff;
  color: var(--accent-0);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 22px rgba(47,109,246,.10);
}

.lfm_slidebar_toggleswitch i{
  font-size: 18px;
  line-height: 1;
}

.lfm_outerdiv{
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: transparent;
}

.lfm_slidebar{
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 16px;
  background:
    radial-gradient(240px 160px at 0% 0%, rgba(47,109,246,.10), transparent 60%),
    radial-gradient(260px 180px at 100% 100%, rgba(245,158,11,.08), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0d1628 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  transition: margin-left 260ms var(--ease);
}

.lfm_slidebar::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.lfm_slidebar::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,.03) 22%,
    rgba(255,255,255,.02) 80%,
    rgba(255,255,255,.08) 100%
  );
  pointer-events: none;
}

.lfm_slidebar.toggled{
  margin-left: calc(-1 * var(--sidebar-w));
}

.lfm_slidebar.toggled + .main .lfm_slidebar_toggleswitch{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 140;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 10px 24px rgba(15,23,42,.12);
}

@media (max-width: 920px){
  .lfm_slidebar{
    margin-left: calc(-1 * var(--sidebar-w));
    position: fixed;
    z-index: 100;
    box-shadow:
      inset -1px 0 0 rgba(255,255,255,.03),
      0 30px 60px rgba(2,6,16,.38);
  }

  .lfm_slidebar.toggled{
    margin-left: 0;
  }

  .lfm_slidebar.toggled + .main .lfm_slidebar_toggleswitch{
    position: relative;
    top: auto;
    left: auto;
    z-index: 120;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9),
      0 6px 16px rgba(15,23,42,.06);
  }
}

/* When sidebar is closed on desktop, make room for the floating toggle */
.lfm_slidebar.toggled + .main .lfm_topbar{
  padding-left: 78px;
}

@media (min-width: 921px){
  .lfm_slidebar.toggled + .main .lfm_topbar{
    padding-left: 86px;
  }
}

/* ================================
   BRAND / LOGO
================================ */

.lfm_sidebar_brand{
  position: relative;
  margin: 0 4px 18px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.lfm_sidebar_brand::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(47,109,246,.28),
    rgba(255,255,255,.04),
    rgba(245,158,11,.22)
  );
  pointer-events: none;
}

.lfm_sidebar_brand_link{
  display: block;
  text-decoration: none !important;
}

.lfm_menu_logo{
  width: 100%;
  max-width: 190px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.35));
}

/* ================================
   MENU STRUCTURE
================================ */

.lfm_slidebar_mainmenu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lfm_slidebar_mainmenu li{
  margin: 0;
  padding: 0;
}

/* Section labels */
.lfm_menu_section_label{
  list-style: none;
  margin: 16px 0 8px !important;
  padding: 0 10px !important;
}

.lfm_menu_section_label .ui-label{
  color: #9fb1d8 !important;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ================================
   MENU ITEMS
================================ */

.lfm_menu_item a{
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--sidebar-text);
  background: transparent;
  border: 1px solid transparent;
  font-weight: var(--fw-medium);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0);
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

/* Icon container */
.lfm_menu_icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #b8c7e6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.lfm_menu_icon i{
  font-size: 14px;
  line-height: 1;
}

.lfm_menu_text{
  min-width: 0;
  color: inherit;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Hover */
.lfm_menu_item a:hover{
  background: var(--sidebar-hover);
  border-color: var(--sidebar-line);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 22px rgba(3,8,18,.18);
}

.lfm_menu_item a:hover .lfm_menu_icon{
  background: rgba(255,255,255,.08);
  color: #ffffff;
  transform: scale(1.03);
}

/* ================================
   ACTIVE STATE (FINAL POLISH)
================================ */

.lfm_menu_item a.active,
.lfm_menu_item a[aria-current="page"]{
  background: linear-gradient(
    90deg,
    rgba(47,109,246,.22),
    rgba(245,158,11,.22)
  );
  border-color: rgba(255,255,255,.12);
  color: #ffffff;

  transform: translateY(-1px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.28),
    0 16px 32px rgba(0,0,0,.45);
}

.lfm_menu_item a.active .lfm_menu_icon,
.lfm_menu_item a[aria-current="page"] .lfm_menu_icon{
  background: rgba(255,255,255,.10);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(255,255,255,.03);
}

.lfm_menu_item a.active::before,
.lfm_menu_item a[aria-current="page"]::before{
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--accent-0),
    var(--brand-warm)
  );
  box-shadow: 0 0 18px rgba(47,109,246,.30);
}

.lfm_menu_item a.active::after,
.lfm_menu_item a[aria-current="page"]::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  pointer-events: none;
}

main.content{
  min-width: 0;
  padding: var(--content-pad);
}

.main{
  width: 100%;
  min-width: 0;
}

.p1-page-shell{
  width: 100%;
  max-width: var(--content-standard);
  margin: 0 auto;
}

.p1-page-shell--narrow{
  max-width: var(--content-narrow);
}

.p1-page-shell--wide{
  max-width: var(--content-max);
}

main.content .container-fluid,
main.content .container{
  max-width: none;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main .container,
.main .container-fluid{
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   GLOBAL COMPONENTS
   ========================================================= */
.card,
.panel,
.well,
.infobar,
.alert,
fieldset,
.table-responsive{
  border-radius: var(--r-lg) !important;
}

.card,
.panel,
.well,
.infobar,
fieldset{
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%) !important;
  border: 1px solid var(--line-card) !important;
  box-shadow: var(--shadow-card) !important;
}

/* Use deliberate clipping only where a component actually needs it. */
.p1-clip,
.card.p1-clip,
.panel.p1-clip,
.well.p1-clip,
.infobar.p1-clip,
fieldset.p1-clip,
.p1-card.p1-clip,
.p1-panel.p1-clip{
  overflow: hidden;
}

.card-header,
.panel-heading,
.box-header,
.lfm_panel_header{
  padding: 18px 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%) !important;
  border-bottom: 1px solid var(--line-card) !important;
  color: var(--text-0) !important;
  font-weight: var(--fw-bold) !important;
}

.card-body,
.panel-body,
.box-body,
.lfm_panel_body{
  padding: 20px 22px;
}

.infobar{
  padding: 16px 18px;
  color: var(--text-2) !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"],
.buttonlink,
a.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 12px !important;
  border: 1px solid var(--line-1) !important;
  background: #ffffff;
  color: var(--text-0) !important;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold) !important;
  letter-spacing: -.01em;
  text-decoration: none !important;
  box-shadow: var(--shadow-control);
  transition:
    transform var(--duration-base) var(--ease),
    box-shadow var(--duration-base) var(--ease),
    background var(--duration-base) var(--ease),
    border-color var(--duration-base) var(--ease),
    color var(--duration-base) var(--ease),
    opacity var(--duration-base) var(--ease);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47,109,246,.10);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.buttonlink:hover,
a.btn:hover{
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) and (pointer: fine){
  .btn:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  .buttonlink:hover,
  a.btn:hover{
    transform: translateY(-1px);
  }
}

.btn:active:not(:disabled):not(.disabled),
button:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="button"]:active:not(:disabled),
.buttonlink:active,
a.btn:active:not(.disabled):not([aria-disabled="true"]){
  transform: translateY(0);
  box-shadow: var(--shadow-control);
}

.btn-primary,
.btn.btn-primary{
  background: linear-gradient(180deg, #3e7bff 0%, var(--accent-0) 100%) !important;
  border-color: #2e66dd !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover,
.btn.btn-primary:hover{
  background: linear-gradient(180deg, #4a84ff 0%, var(--accent-1) 100%) !important;
  box-shadow: 0 14px 28px rgba(47,109,246,.26);
}

/* Dominant CTA layer for the one key action on a screen */
.btn-hot,
.btn-primary.is-hot,
.btn.btn-primary.is-hot{
  background: linear-gradient(180deg, #fbbf24 0%, var(--brand-warm) 100%) !important;
  border-color: #e29a1b !important;
  color: var(--text-0) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
  box-shadow: var(--shadow-warm);
}

.btn-hot:hover,
.btn-primary.is-hot:hover,
.btn.btn-primary.is-hot:hover{
  background: linear-gradient(180deg, #fdc93b 0%, var(--brand-warm-deep) 100%) !important;
  color: var(--text-0) !important;
  box-shadow: 0 14px 28px rgba(245,158,11,.26);
}

.btn:disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.btn.disabled,
.btn[aria-disabled="true"],
.buttonlink[aria-disabled="true"]{
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn-secondary,
.btn-default,
.btn-outline-primary{
  background: var(--surface-0) !important;
  color: var(--accent-0) !important;
  border-color: #d7e3f8 !important;
}

.btn-secondary:hover,
.btn-default:hover,
.btn-outline-primary:hover{
  background: var(--bg-accent-soft) !important;
}

.btn-warm,
.btn-outline-warm{
  background: var(--brand-warm-soft) !important;
  color: var(--brand-warm-deep) !important;
  border-color: var(--brand-warm-line) !important;
}

.btn-warm:hover,
.btn-outline-warm:hover{
  background: #fff1d6 !important;
  color: var(--brand-warm-deep) !important;
}

.btn-sm{
  min-height: 36px;
  padding: 8px 12px;
  font-size: var(--fs-sm);
}

.btn-lg{
  min-height: 50px;
  padding: 12px 20px;
  font-size: var(--fs-lg);
  border-radius: 14px !important;
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea{
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--line-1) !important;
  background: #ffffff !important;
  color: var(--text-0) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), var(--shadow-xs) !important;
  transition:
    border-color var(--duration-base) var(--ease),
    box-shadow var(--duration-base) var(--ease),
    background var(--duration-base) var(--ease),
    color var(--duration-base) var(--ease);
}

.form-control,
input:not([type]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="date"],
input[type="time"],
select{
  min-height: 46px;
  padding: 10px 14px;
}

textarea{
  padding: 12px 14px;
  min-height: 120px;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder{
  color: var(--text-4) !important;
  opacity: 1;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus{
  outline: none !important;
  border-color: #a6c3ff !important;
  box-shadow: var(--focus), var(--shadow-xs) !important;
}

label{
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}

input[type="checkbox"],
input[type="radio"]{
  accent-color: var(--accent-0);
}

.form-control:disabled,
input:disabled,
select:disabled,
textarea:disabled{
  background: var(--bg-soft-2) !important;
  color: var(--text-3) !important;
  border-color: var(--line-0) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  opacity: 1;
}

.form-control[readonly],
input[readonly],
textarea[readonly]{
  background: var(--bg-soft) !important;
  border-color: var(--line-0) !important;
  color: var(--text-2) !important;
  box-shadow: none !important;
}

.form-control.is-invalid,
.form-control[aria-invalid="true"],
input.is-invalid,
input[aria-invalid="true"],
select.is-invalid,
select[aria-invalid="true"],
textarea.is-invalid,
textarea[aria-invalid="true"]{
  border-color: #e9a6a6 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08) !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--text-0);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out 0s;
}

/* Alerts */
.alert{
  padding: 14px 16px;
  border: 1px solid var(--line-0) !important;
  background: #ffffff !important;
  color: var(--text-1) !important;
  box-shadow: var(--shadow-xs) !important;
}

.alert-success{
  background: var(--good-bg) !important;
  border-color: #bde8c8 !important;
  border-left: 4px solid var(--good) !important;
}

.alert-warning{
  background: var(--warn-bg) !important;
  border-color: var(--brand-warm-line) !important;
  border-left: 4px solid var(--brand-warm) !important;
}

.alert-danger{
  background: var(--bad-bg) !important;
  border-color: #f3c4c4 !important;
  border-left: 4px solid var(--bad) !important;
}

.alert-info{
  background: var(--info-bg) !important;
  border-color: #cfe0ff !important;
  border-left: 4px solid var(--accent-0) !important;
}

fieldset legend{
  padding: 0 6px;
  color: var(--text-0);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -.015em;
}

/* Tables */
.table,
table{
  width: 100%;
  color: var(--text-1) !important;
  background: #ffffff !important;
  border: 1px solid var(--line-0) !important;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.table thead th,
table thead th{
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4fb 100%) !important;
  color: var(--text-2) !important;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-0) !important;
  padding: 13px 14px;
}

.table td, .table th,
table td, table th{
  padding: 14px;
  border-top: 1px solid var(--line-0) !important;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.table-responsive{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.table tbody tr:hover,
table tbody tr:hover{
  background: #fbfdff !important;
}

/* Tabs / badges */
.nav-tabs{
  border-bottom: 1px solid var(--line-0);
}

.nav-tabs .nav-link{
  margin-right: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
}

.nav-tabs .nav-link:hover{
  background: var(--bg-soft);
  border-color: var(--line-0);
}

.nav-tabs .nav-link.active{
  background: linear-gradient(180deg, var(--accent-2) 0%, #f4f8ff 100%);
  border-color: #d4e3ff;
  color: var(--accent-0);
}

.badge,
.label{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bg-soft);
  color: var(--text-1);
  border: 1px solid var(--line-0);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.badge-success,
.label-success{
  background: var(--good-bg);
  border-color: #bde8c8;
  color: #15763c;
}

.badge-warning,
.label-warning{
  background: var(--warn-bg);
  border-color: var(--brand-warm-line);
  color: #a76b00;
}

.badge-info,
.label-info{
  background: var(--accent-2);
  border-color: #cfe0ff;
  color: var(--accent-1);
}

.badge-depth,
.label-depth{
  background: var(--brand-depth-soft);
  border-color: var(--brand-depth-line);
  color: var(--brand-depth);
}

.profilepic_small,
.profilepic_med,
.profilepic_large{
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   MEMBER AVATAR FOUNDATION V1
   Shared Gravatar + local initials component.
   ========================================================= */
.p1-avatar{
  --p1-avatar-size: 64px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--p1-avatar-size);
  height: var(--p1-avatar-size);
  flex: 0 0 var(--p1-avatar-size);
  overflow: hidden;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.78), transparent 38%),
    linear-gradient(145deg, var(--accent-2) 0%, #dbe9ff 100%);
  color: var(--accent-1);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    var(--shadow-sm);
  isolation: isolate;
  vertical-align: middle;
}

.p1-avatar-initials{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: calc(var(--p1-avatar-size) * .30);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  user-select: none;
}

.p1-avatar-img{
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: inherit;
  background: #ffffff;
}

.p1-avatar--sm{ --p1-avatar-size: 40px !important; }
.p1-avatar--md{ --p1-avatar-size: 64px !important; }
.p1-avatar--lg{ --p1-avatar-size: 112px !important; }

.p1-profile-avatar-card{
  border-color: #dbe5f3 !important;
}

.p1-profile-avatar-layout{
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
}

.p1-profile-avatar-preview{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 138px;
  padding: 13px;
  border: 1px solid var(--line-0);
  border-radius: 22px;
  background:
    radial-gradient(150px 100px at 50% 0%, rgba(47,109,246,.08), transparent 70%),
    var(--bg-soft);
}

.p1-profile-avatar-content{
  min-width: 0;
}

.p1-profile-avatar-name{
  margin: 0;
  color: var(--text-0);
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.p1-profile-avatar-email{
  margin-top: 4px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.p1-profile-avatar-copy{
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.55;
}

.p1-profile-avatar-note{
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.p1-profile-avatar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 640px){
  .p1-profile-avatar-layout{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .p1-profile-avatar-preview{
    min-width: 0;
    width: 138px;
    justify-self: start;
  }
}

/* =========================================================
   SHARED MEMBER SURFACES
   ---------------------------------------------------------
   Reusable member-area primitives only. Page-specific dashboard
   layouts and retired scorecard / leaderboard components do not
   belong in the global stylesheet.
   ========================================================= */
.p1-panel,
.p1-card{
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--line-card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.p1-card--elevated,
.p1-panel--elevated,
.p1-hero{
  box-shadow: var(--shadow-elevated);
}

.p1-panel__head{
  padding: 20px 24px 0;
}

.p1-panel__body{
  padding: 18px 24px 24px;
}

.p1-panel__title,
.p1-title-sm{
  margin: 0;
  color: var(--text-0);
  font-size: 19px;
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
}

.p1-panel__eyebrow,
.p1-status-label{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.p1-panel__eyebrow{
  color: var(--accent-0);
}

/* Shared warm hero treatment. Individual pages may refine it locally. */
.p1-hero{
  background:
    radial-gradient(620px 270px at 80% 18%, rgba(245,158,11,.12), transparent 60%),
    radial-gradient(560px 240px at 16% -8%, rgba(47,109,246,.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  border-color: #eadfcb;
}

.p1-hero .p1-panel__body{
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 240px;
  gap: 20px;
  align-items: center;
}

.p1-hero__text h2,
.p1-hero__title{
  margin: 0 0 10px;
  color: var(--text-0);
  font-size: 21px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.p1-hero__text p,
.p1-hero__desc{
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  max-width: 46ch;
}

.p1-hero__actions{
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   PLUS 1 ADS LAYOUT PRIMITIVES
   ---------------------------------------------------------
   Reusable page-level rhythm for member-area screens.
   These classes do not alter existing pages until adopted.
   ========================================================= */
.p1-page-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.p1-page-head__main{
  min-width: 0;
}

.p1-page-head__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.p1-page-title{
  margin: 0;
  color: var(--text-0);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: var(--fw-bold);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.p1-page-subtitle{
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.p1-stack{
  display: grid;
  gap: var(--space-6);
}

.p1-stack--sm{
  gap: var(--space-4);
}

.p1-stack--lg{
  gap: var(--space-8);
}

.p1-section{
  display: grid;
  gap: var(--space-4);
}

.p1-section + .p1-section{
  margin-top: var(--space-8);
}

/* =========================================================
   INSET SURFACES
   ---------------------------------------------------------
   Use these inside cards/panels instead of nesting another
   fully elevated card.
   ========================================================= */
.p1-inset{
  min-width: 0;
  padding: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
  box-shadow: none;
}

.p1-inset--blue{
  background: var(--accent-2);
  border-color: var(--accent-3);
}

.p1-inset--warm{
  background: var(--brand-warm-soft);
  border-color: var(--brand-warm-line);
}

.p1-inset--depth{
  background: var(--brand-depth-soft);
  border-color: var(--brand-depth-line);
}

/* =========================================================
   QUIET CALLOUT / NOTE SYSTEM
   ---------------------------------------------------------
   For explanatory product copy such as "Why this matters"
   or "What happens next." Alerts remain for system messages.
   ========================================================= */
.p1-note{
  --p1-note-accent: var(--accent-0);
  position: relative;
  min-width: 0;
  padding: 16px 18px 16px 20px;
  background: var(--surface-1);
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
  color: var(--text-1);
}

.p1-note::before{
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--p1-note-accent);
}

.p1-note--warm{
  --p1-note-accent: var(--brand-warm);
  background: var(--brand-warm-soft);
  border-color: var(--brand-warm-line);
}

.p1-note--good{
  --p1-note-accent: var(--good);
  background: var(--good-bg);
  border-color: #bde8c8;
}

.p1-note--depth{
  --p1-note-accent: var(--brand-depth);
  background: var(--brand-depth-soft);
  border-color: var(--brand-depth-line);
}

.p1-note__title{
  margin: 0 0 4px;
  color: var(--text-0);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.p1-note__copy{
  margin: 0;
  color: var(--text-2);
}

/* =========================================================
   EMPTY STATES
   ---------------------------------------------------------
   Calm, intentional no-data treatment for early and quiet
   account states.
   ========================================================= */
.p1-empty{
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-8);
  border: 1px dashed var(--line-1);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.p1-empty__icon{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--accent-2);
  color: var(--accent-0);
}

.p1-empty__icon i{
  line-height: 1;
}

.p1-empty__title{
  margin: 0;
  color: var(--text-0);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.25;
}

.p1-empty__copy{
  max-width: 55ch;
  margin: 0;
  color: var(--text-2);
}

.p1-empty__actions{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

/* =========================================================
   STAT TYPOGRAPHY
   ---------------------------------------------------------
   Reusable number hierarchy without introducing another KPI
   card system.
   ========================================================= */
.p1-stat{
  min-width: 0;
}

.p1-stat-value{
  color: var(--text-0);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.p1-stat-label{
  margin-top: 7px;
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

.p1-stat-meta{
  margin-top: 5px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

/* =========================================================
   PROGRAM MEDIA
   ---------------------------------------------------------
   Preserve program identity. Artwork is contained; screenshots
   keep their natural proportions.
   ========================================================= */
.p1-program-media{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
}

.p1-program-media img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.p1-program-shot{
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.p1-program-shot img{
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* =========================================================
   PRO CAPABILITY FOUNDATION
   ---------------------------------------------------------
   Purple signals deeper capability and intelligence. It must
   never imply preferred sponsor treatment or network priority.
   ========================================================= */
.p1-pro-context{
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  border-color: var(--brand-depth-line) !important;
}

.p1-pro-label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--brand-depth-line);
  border-radius: 999px;
  background: var(--brand-depth-soft);
  color: var(--brand-depth);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.p1-pro-label i{
  line-height: 1;
}

/* Safe future replacement for blanket mobile action hiding.
   Existing header behavior remains unchanged until header.php adopts it. */
.p1-mobile-optional{
  /* intentionally no desktop styling */
}

/* Small reusable member utilities. */
.p1-linkline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-0);
  font-weight: var(--fw-semibold);
}

.p1-linkline:hover{
  color: var(--accent-1);
}

.p1-ok{ color: var(--good) !important; }
.p1-bad{ color: var(--bad) !important; }
.p1-warm{ color: var(--brand-warm-deep) !important; }
.p1-depth{ color: var(--brand-depth) !important; }
.p1-meta{
  margin-top: 10px;
  color: var(--text-3) !important;
  font-size: 13px;
}

/* =========================================================
   HELPERS / LEGACY
   ========================================================= */
.surface,
.surface-lite,
.inset,
.subpanel,
.inner,
.innerbox,
.mini-panel{
  background: var(--surface-2);
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
  box-shadow: none;
}

.caption,
.note-line,
.helpbar{
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-0);
  color: var(--text-3);
  font-size: 12px;
}

.listrow:hover{
  background: transparent !important;
}

details summary{
  color: var(--text-1);
}

details summary:hover{
  color: var(--text-0);
}

/* =========================================================
   GLOBAL POLISH / ACCESSIBILITY
   ---------------------------------------------------------
   Quiet refinements that improve every member page without
   changing the Plus 1 Ads visual identity.
   ========================================================= */

/* Keep long names, URLs, and flex/grid children from breaking layouts. */
main.content :where(.card, .panel, .well, .infobar, fieldset, .p1-card, .p1-panel, .p1-page-shell){
  min-width: 0;
}

main.content :where(a, p, td, th, .lfm_descr, .p1-meta){
  overflow-wrap: anywhere;
}

/* Sticky top bar should not cover anchored content. */
main.content [id]{
  scroll-margin-top: 108px;
}

/* Sidebar focus deserves a visible treatment that works on the dark shell. */
.lfm_slidebar a:focus-visible,
.lfm_slidebar button:focus-visible{
  outline: none;
  box-shadow: var(--focus-sidebar);
}

/* Scrollbars stay visible enough to use without becoming decoration. */
.lfm_slidebar{
  scrollbar-width: thin;
  scrollbar-color: rgba(174,189,221,.42) transparent;
}

.lfm_slidebar::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

.lfm_slidebar::-webkit-scrollbar-thumb{
  background: rgba(174,189,221,.34);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.table-responsive::-webkit-scrollbar-thumb{
  background: var(--line-2);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

/* Touch devices should not inherit desktop lift behavior. */
@media (hover: none){
  .lfm_slidebar_toggleswitch:hover,
  .lfm_menu_item a:hover,
  .lfm_menu_item a:hover .lfm_menu_icon,
  .btn:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  .buttonlink:hover,
  a.btn:hover{
    transform: none;
  }
}

/* Respect the member's operating-system motion preference. */
@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   LEGACY UI HARMONIZATION V1
   ---------------------------------------------------------
   Brings common Bootstrap/LFMVM interface pieces into the same
   Plus 1 Ads visual language without requiring page rewrites.
   Scoped to the member shell to avoid changing unrelated public UI.
   ========================================================= */

/* Dropdown menus */
.main .dropdown-menu{
  min-width: 210px;
  padding: 8px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line-card);
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
}

.main .dropdown-menu > li > a,
.main .dropdown-item{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.35;
}

.main .dropdown-menu > li > a:hover,
.main .dropdown-menu > li > a:focus,
.main .dropdown-item:hover,
.main .dropdown-item:focus{
  background: var(--bg-accent-soft);
  color: var(--accent-1);
}

.main .dropdown-menu .divider,
.main .dropdown-divider{
  height: 1px;
  margin: 7px 4px;
  background: var(--line-0);
  border: 0;
}

.main .dropdown-header{
  padding: 8px 11px 5px;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Modals */
.main .modal-content{
  background: var(--surface-0);
  border: 1px solid var(--line-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-overlay);
  overflow: hidden;
}

.main .modal-header{
  padding: 18px 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  border-bottom: 1px solid var(--line-0);
}

.main .modal-title{
  margin: 0;
  color: var(--text-0);
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
}

.main .modal-body{
  padding: 22px;
  color: var(--text-1);
}

.main .modal-footer{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  background: var(--surface-1);
  border-top: 1px solid var(--line-0);
}

.main .modal-header .close,
.main .modal-header button.close{
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent;
  color: var(--text-3) !important;
  box-shadow: none;
  opacity: 1;
}

.main .modal-header .close:hover,
.main .modal-header button.close:hover{
  background: var(--bg-soft);
  color: var(--text-0) !important;
  transform: none;
}

.main .modal-backdrop.show,
.main .modal-backdrop.in{
  opacity: .34;
}

/* Pagination and pager controls */
.main .pagination,
.main .pager{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.main .pagination > li,
.main .pager > li{
  margin: 0;
}

.main .pagination > li > a,
.main .pagination > li > span,
.main .page-link,
.main .pager > li > a,
.main .pager > li > span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line-1);
  border-radius: 10px !important;
  background: var(--surface-0);
  color: var(--text-2);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  box-shadow: var(--shadow-xs);
}

.main .pagination > li > a:hover,
.main .pagination > li > a:focus,
.main .page-link:hover,
.main .page-link:focus,
.main .pager > li > a:hover,
.main .pager > li > a:focus{
  z-index: 2;
  background: var(--bg-accent-soft);
  border-color: #cfe0ff;
  color: var(--accent-1);
}

.main .pagination > .active > a,
.main .pagination > .active > span,
.main .page-item.active .page-link{
  background: var(--accent-0);
  border-color: var(--accent-0);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.main .pagination > .disabled > a,
.main .pagination > .disabled > span,
.main .page-item.disabled .page-link,
.main .pager .disabled > a,
.main .pager .disabled > span{
  background: var(--bg-soft);
  border-color: var(--line-0);
  color: var(--text-4);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* Breadcrumbs */
.main .breadcrumb{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--space-4);
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.main .breadcrumb > li{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main .breadcrumb > li + li::before{
  padding: 0;
  color: var(--text-4);
}

.main .breadcrumb a{
  color: var(--text-2);
  font-weight: var(--fw-medium);
}

.main .breadcrumb a:hover{
  color: var(--accent-1);
}

/* List groups */
.main .list-group{
  margin: 0;
  border-radius: var(--r-md);
}

.main .list-group-item{
  padding: 13px 15px;
  background: var(--surface-0);
  border-color: var(--line-0);
  color: var(--text-1);
}

.main .list-group-item:first-child{
  border-top-left-radius: var(--r-md);
  border-top-right-radius: var(--r-md);
}

.main .list-group-item:last-child{
  border-bottom-left-radius: var(--r-md);
  border-bottom-right-radius: var(--r-md);
}

.main a.list-group-item:hover,
.main button.list-group-item:hover,
.main .list-group-item-action:hover{
  background: var(--surface-1);
  color: var(--text-0);
}

.main .list-group-item.active,
.main .list-group-item.active:hover,
.main .list-group-item.active:focus{
  background: var(--accent-2);
  border-color: var(--accent-3);
  color: var(--accent-1);
}

/* Input groups and field assistance */
.main .input-group-addon,
.main .input-group-text{
  min-height: 46px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-1);
  color: var(--text-2);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}

.main .help-block,
.main .form-text,
.main .form-hint,
.main .field-help{
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.main .invalid-feedback,
.main .field-error{
  display: block;
  margin-top: 6px;
  color: var(--bad);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.45;
}

.main .valid-feedback,
.main .field-success{
  display: block;
  margin-top: 6px;
  color: var(--good);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.45;
}

.main input[type="file"]{
  max-width: 100%;
  color: var(--text-2);
  font-size: 14px;
}

.main input[type="file"]::file-selector-button{
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  background: var(--surface-0);
  color: var(--accent-0);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease),
    border-color var(--duration-base) var(--ease),
    color var(--duration-base) var(--ease),
    box-shadow var(--duration-base) var(--ease);
}

.main input[type="file"]::file-selector-button:hover{
  background: var(--bg-accent-soft);
  border-color: #cfe0ff;
  color: var(--accent-1);
}

textarea{
  resize: vertical;
}

/* Generic progress bars */
.main .progress{
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #e9eef5;
  border: 1px solid var(--line-0);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.07);
}

.main .progress-bar{
  height: 100%;
  background: var(--accent-0);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.main .progress-bar-success{ background: var(--good); }
.main .progress-bar-warning{ background: var(--brand-warm); }
.main .progress-bar-danger{ background: var(--bad); }
.main .progress-bar-info{ background: var(--info); }

/* Nav pills */
.main .nav-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.main .nav-pills > li{
  margin: 0;
}

.main .nav-pills > li > a,
.main .nav-pills .nav-link{
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: var(--fw-semibold);
}

.main .nav-pills > li > a:hover,
.main .nav-pills .nav-link:hover{
  background: var(--bg-soft);
  border-color: var(--line-0);
  color: var(--text-0);
}

.main .nav-pills > li.active > a,
.main .nav-pills > li.active > a:hover,
.main .nav-pills .nav-link.active{
  background: var(--accent-2);
  border-color: var(--accent-3);
  color: var(--accent-1);
}

/* Tooltips and popovers */
.main .tooltip-inner{
  max-width: 280px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--sidebar-bg);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

.main .popover{
  background: var(--surface-0);
  border: 1px solid var(--line-card);
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
}

.main .popover-title,
.main .popover-header{
  padding: 10px 13px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--line-0);
  color: var(--text-0);
  font-weight: var(--fw-bold);
}

.main .popover-content,
.main .popover-body{
  padding: 12px 13px;
  color: var(--text-1);
}

/* Details / disclosure controls */
.main details > summary{
  cursor: pointer;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.main details > summary::marker{
  color: var(--accent-0);
}

.main details > summary:focus-visible{
  outline: none;
  border-radius: 6px;
  box-shadow: var(--focus);
}

/* =========================================================
   MODERN MEMBER UTILITIES V1
   ---------------------------------------------------------
   Optional primitives for future page adoption. These do not
   change existing markup until explicitly used.
   ========================================================= */
.p1-toolbar,
.p1-action-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.p1-action-row{
  justify-content: flex-start;
}

.p1-toolbar__group{
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.p1-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line-0);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.p1-chip--blue{
  background: var(--accent-2);
  border-color: var(--accent-3);
  color: var(--accent-1);
}

.p1-chip--good{
  background: var(--good-bg);
  border-color: #bde8c8;
  color: #15763c;
}

.p1-chip--warm{
  background: var(--brand-warm-soft);
  border-color: var(--brand-warm-line);
  color: #9a6200;
}

.p1-chip--depth{
  background: var(--brand-depth-soft);
  border-color: var(--brand-depth-line);
  color: var(--brand-depth);
}

.p1-icon-btn{
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px !important;
}

.p1-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--space-5);
}

.p1-field{
  min-width: 0;
}

.p1-field--full{
  grid-column: 1 / -1;
}

.p1-field > label:first-child{
  display: block;
  margin-bottom: 7px;
}

.p1-divider{
  height: 1px;
  margin: var(--space-6) 0;
  background: var(--line-0);
  border: 0;
}

.p1-truncate{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p1-break-anywhere{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p1-sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width:720px){
  .p1-toolbar{
    align-items: stretch;
  }

  .p1-form-grid{
    grid-template-columns: 1fr;
  }

  .p1-field--full{
    grid-column: auto;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px){
  .lfm_topbar{
    position: sticky;
  }

  .lfm_topbar_actions{
    gap: 8px;
  }

  .lfm_topbar_actions .btn{
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .p1-page-shell{
    max-width: none;
  }

  .main .container,
  .main .container-fluid{
    width: 100%;
  }

  .p1-page-head{
    gap: var(--space-4);
  }

  .p1-hero .p1-panel__body{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px){
  body{
    font-weight: 500;
  }

  p,
  .lfm_descr,
  .p1-guided-program p,
  .p1-guided-why-item p,
  .p1-guided-record-note,
  .p1-guided-return span,
  .p1-guided-footer span,
  .p1-support-card p,
  .p1-hero-copy p,
  .p1-info-note,
  .p1-step-list em,
  .p1-cycle-list div{
    color: #475569 !important;
    font-weight: 500;
  }

  .text-muted,
  .ui-muted,
  small,
  .p1-meta{
    color: #64748b !important;
  }

  h1,
  h2,
  h3,
  .lfm_title,
  .p1-guided-program h1,
  .p1-guided-complete h1,
  .p1-hero-copy h1{
    font-weight: 850;
  }
}

/* =========================================================
   Member Clarity V1 — global mobile and shell polish
   Keeps the interface calm, readable, and tap-friendly.
   ========================================================= */
.lfm_topbar_actions .btn{
  white-space: nowrap;
}

.lfm_menu_item a{
  min-width: 0;
}

.lfm_menu_text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn i{
  line-height: 1;
}

.btn{
  max-width: 100%;
}

@media (max-width: 720px){

  .lfm_topbar{
    min-height: 64px;
    padding: 12px 14px;
  }

  .lfm_topbar_inner{
    align-items: center;
    gap: 10px;
  }

  .lfm_topbar_title{
    font-size: 22px;
    line-height: 1.08;
  }

  .lfm_topbar_subtitle{
    display: none;
  }

  .lfm_topbar_actions{
    margin-left: auto;
  }

  /* Legacy behavior retained until header.php marks optional actions explicitly. */
  .lfm_topbar_actions .btn:not(.is-hot){
    display: none;
  }

  .lfm_slidebar_toggleswitch{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-basis: 40px;
  }

  .btn,
  .buttonlink,
  a.btn,
  button,
  input[type="submit"],
  input[type="button"]{
    min-height: 44px;
  }

  .btn-sm{
    min-height: 38px;
  }

  .btn-lg{
    min-height: 50px;
  }

  h1,
  .lfm_title{
    font-size: 30px;
  }

  h2{
    font-size: 23px;
  }

  .p1-page-head{
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: var(--space-5);
  }

  .p1-page-head__actions{
    justify-content: flex-start;
  }

  .p1-page-title{
    font-size: 30px;
  }

  .p1-page-subtitle{
    font-size: 15px;
  }

  .p1-empty{
    padding: var(--space-6);
  }

  .card-body,
  .panel-body,
  .box-body,
  .lfm_panel_body{
    padding: 18px;
  }

  .alert{
    padding: 13px 14px;
  }
}

@media (max-width: 420px){

  .lfm_topbar_title{
    font-size: 20px;
  }

  .lfm_topbar_actions .btn.is-hot{
    padding-left: 10px;
    padding-right: 10px;
  }

  .card,
  .panel,
  .well,
  .infobar,
  .alert,
  fieldset,
  .table-responsive{
    border-radius: 16px !important;
  }

  .p1-empty{
    padding: var(--space-5);
  }
}

/* =========================================================
   ACTIVE PROGRAM NAVIGATION RETIREMENT — 2026-08-21
   Active Program selection now belongs inside Marketing Portfolio.
   Keep legacy active-program.php available for old/direct links, but do not
   present it as a separate member navigation destination.
   ========================================================= */
.lfm_slidebar_mainmenu a[href="active-program.php"]{
  display:none !important;
}

/* Modern browsers: remove the empty menu row as well. */
.lfm_slidebar_mainmenu .lfm_menu_item:has(> a[href="active-program.php"]){
  display:none !important;
}

/* =========================================================
   SMOOTH DISCLOSURE FOUNDATION — 2026-09-29
   Opt-in treatment for substantial expandable panels.
   JavaScript animates the panel body for reliable open/close.
   ========================================================= */

.p1-smooth-details > .p1pf-workspace{
  transform-origin:top center;
  will-change:height, opacity, transform;
}

@media (prefers-reduced-motion: reduce){
  .p1-smooth-details > .p1pf-workspace{
    will-change:auto;
  }
}


/* =========================================================
   PLUS 1 ADS — PREMIUM GLOBAL POLISH — 2026-09-29
   A restrained interaction + perceptual layer. The goal is
   not "more effects"; it is a site that feels more deliberate.
   ========================================================= */

:root{
  --p1-ease-premium: cubic-bezier(.2,.8,.2,1);
  --p1-shadow-hover:
    0 2px 4px rgba(15,23,42,.04),
    0 14px 34px rgba(15,23,42,.075);
  --p1-shadow-focus-surface:
    0 0 0 3px rgba(47,109,246,.035),
    0 12px 30px rgba(15,23,42,.065);
}

/* ---------------------------------------------------------
   1. PAGE ARRIVAL
   Separate PHP pages feel like one calm application.
   --------------------------------------------------------- */

@keyframes p1-page-arrive{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference){
  main.content{
    animation: p1-page-arrive 220ms var(--p1-ease-premium) both;
  }
}

/* ---------------------------------------------------------
   2. SURFACE MATERIAL
   A tiny inner highlight gives cards cleaner physical depth.
   --------------------------------------------------------- */

.card,
.panel,
.well,
.infobar,
fieldset{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    var(--shadow-card) !important;
}

.p1-card,
.p1-panel{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    var(--shadow-card);
}

/* ---------------------------------------------------------
   3. WORKING SURFACE FOCUS
   The surface containing the current form control wakes up.
   --------------------------------------------------------- */

main.content :where(
  .card,
  .panel,
  .well,
  fieldset,
  .p1-card,
  .p1-panel
):has(:where(
  .form-control,
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  select,
  textarea
):focus){
  border-color: #cbdcff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    var(--p1-shadow-focus-surface) !important;
}

/* ---------------------------------------------------------
   4. TACTILE CONTROLS
   Hover rises; pressing actually feels like pressing.
   --------------------------------------------------------- */

.btn:active:not(:disabled):not(.disabled),
button:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="button"]:active:not(:disabled),
.buttonlink:active,
a.btn:active:not(.disabled):not([aria-disabled="true"]){
  transform: translateY(1px) scale(.995);
  box-shadow:
    inset 0 2px 4px rgba(15,23,42,.08),
    0 1px 2px rgba(15,23,42,.04) !important;
}

.btn-primary,
.btn.btn-primary{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    var(--shadow-blue);
}

.btn-hot,
.btn-primary.is-hot,
.btn.btn-primary.is-hot{
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    var(--shadow-warm);
}

/* ---------------------------------------------------------
   5. DOMINANT ACTION SHEEN
   One quick reflection on hover. Never loops.
   --------------------------------------------------------- */

.btn-hot::after,
.btn-primary.is-hot::after,
.btn.btn-primary.is-hot::after{
  content: "";
  position: absolute;
  top: -45%;
  left: -55%;
  width: 32%;
  height: 190%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.38),
      transparent
    );
}

@keyframes p1-hot-sheen{
  0%{ left: -55%; opacity: 0; }
  18%{ opacity: 1; }
  100%{ left: 125%; opacity: 0; }
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .btn-hot:hover::after,
  .btn-primary.is-hot:hover::after,
  .btn.btn-primary.is-hot:hover::after{
    animation: p1-hot-sheen 460ms var(--p1-ease-premium) 1;
  }
}

/* ---------------------------------------------------------
   6. FORM AFFORDANCE
   Inputs respond before focus, then settle into a clean glow.
   --------------------------------------------------------- */

@media (hover:hover) and (pointer:fine){
  .form-control:hover:not(:focus):not(:disabled),
  input:not([type]):hover:not(:focus):not(:disabled),
  input[type="text"]:hover:not(:focus):not(:disabled),
  input[type="email"]:hover:not(:focus):not(:disabled),
  input[type="password"]:hover:not(:focus):not(:disabled),
  input[type="number"]:hover:not(:focus):not(:disabled),
  input[type="url"]:hover:not(:focus):not(:disabled),
  input[type="search"]:hover:not(:focus):not(:disabled),
  input[type="tel"]:hover:not(:focus):not(:disabled),
  input[type="date"]:hover:not(:focus):not(:disabled),
  input[type="time"]:hover:not(:focus):not(:disabled),
  select:hover:not(:focus):not(:disabled),
  textarea:hover:not(:focus):not(:disabled){
    border-color: #bcc9da !important;
  }
}

.form-control:focus,
input:not([type]):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus{
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
}

/* ---------------------------------------------------------
   7. TABLE READING FEEDBACK
   Dense information gets a quiet visual reading rail.
   --------------------------------------------------------- */

.table tbody tr,
table tbody tr{
  transition:
    background 140ms var(--ease),
    color 140ms var(--ease);
}

.table tbody tr:hover,
table tbody tr:hover{
  background: #f8fbff !important;
}

.table tbody tr:hover > :first-child,
table tbody tr:hover > :first-child{
  box-shadow: inset 3px 0 0 rgba(47,109,246,.28);
}

/* ---------------------------------------------------------
   8. TRUE INTERACTIVE CARDS
   Static cards remain still. Clickable cards gain physicality.
   --------------------------------------------------------- */

a.p1-card,
a.card,
.p1-card[role="button"],
.card[role="button"]{
  transition:
    transform 200ms var(--p1-ease-premium),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--p1-ease-premium);
}

@media (hover:hover) and (pointer:fine){
  a.p1-card:hover,
  a.card:hover,
  .p1-card[role="button"]:hover,
  .card[role="button"]:hover{
    transform: translateY(-2px);
    border-color: #cedcf0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.92),
      var(--p1-shadow-hover) !important;
  }
}

/* ---------------------------------------------------------
   9. BRANDED TEXT LINKS
   Prose links gain an elegant underline rather than button-like
   motion. Navigation and explicit buttons are excluded.
   --------------------------------------------------------- */

main.content :where(p, li, .p1-help, .p1-note__copy) > a:not(.btn):not(.buttonlink){
  text-decoration-line: underline;
  text-decoration-color: rgba(47,109,246,.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--duration-fast) var(--ease),
    text-decoration-color var(--duration-fast) var(--ease),
    text-underline-offset var(--duration-fast) var(--ease);
}

@media (hover:hover) and (pointer:fine){
  main.content :where(p, li, .p1-help, .p1-note__copy) > a:not(.btn):not(.buttonlink):hover{
    text-decoration-color: rgba(47,109,246,.72);
    text-underline-offset: 4px;
  }
}

/* ---------------------------------------------------------
   10. SEPARATORS WITH DEPTH
   Major dividers fade naturally into the page rather than
   reading as hard boxes.
   --------------------------------------------------------- */

hr,
.p1-divider{
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-0) 12%,
    var(--line-0) 88%,
    transparent 100%
  );
}

/* ---------------------------------------------------------
   11. PEOPLE FEEL IMPORTANT
   Plus 1 Ads is about programs AND the people behind them.
   --------------------------------------------------------- */

.p1-avatar,
.profilepic_small,
.profilepic_med,
.profilepic_large{
  transition:
    transform 180ms var(--p1-ease-premium),
    box-shadow 220ms var(--p1-ease-premium),
    border-color 180ms var(--ease);
}

@media (hover:hover) and (pointer:fine){
  a:hover .p1-avatar,
  .p1-avatar:hover,
  a:hover .profilepic_small,
  a:hover .profilepic_med,
  a:hover .profilepic_large{
    transform: translateY(-1px) scale(1.015);
    box-shadow:
      0 0 0 3px rgba(255,255,255,.94),
      0 0 0 5px rgba(47,109,246,.09),
      0 10px 24px rgba(15,23,42,.12);
  }
}

/* ---------------------------------------------------------
   12. EMPTY STATES FEEL INTENTIONAL
   A quiet radial wash prevents "no data" from feeling broken.
   --------------------------------------------------------- */

.p1-empty{
  background:
    radial-gradient(360px 180px at 10% 0%, rgba(47,109,246,.055), transparent 70%),
    var(--surface-1);
}

.p1-empty__icon{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 8px 20px rgba(47,109,246,.08);
}

/* ---------------------------------------------------------
   13. NUMBERS STAY CALM
   Any common metric/value class inherits tabular numerals.
   --------------------------------------------------------- */

.p1-stat-value,
.p1-metric-value,
.p1-kpi-value,
.p1-result-value,
.amount,
.balance,
[data-value],
[data-count]{
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   14. MAIN PAGE SCROLLBAR
   Browser chrome quietly joins the Plus 1 Ads visual system.
   --------------------------------------------------------- */

html{
  scrollbar-width: thin;
  scrollbar-color: #c5cedb transparent;
}

html::-webkit-scrollbar{
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-thumb{
  background: #c5cedb;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover{
  background: #aeb9c8;
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* ---------------------------------------------------------
   15. BRAND PRESENCE
   The sidebar mark gets an extremely quiet ambient pulse.
   --------------------------------------------------------- */

@keyframes p1-brand-breathe{
  0%,100%{
    filter:
      drop-shadow(0 10px 28px rgba(0,0,0,.35))
      drop-shadow(0 0 0 rgba(47,109,246,0));
  }
  50%{
    filter:
      drop-shadow(0 10px 28px rgba(0,0,0,.35))
      drop-shadow(0 0 12px rgba(47,109,246,.11));
  }
}

@media (prefers-reduced-motion: no-preference){
  .lfm_menu_logo{
    animation: p1-brand-breathe 10s ease-in-out infinite;
  }
}

/* ---------------------------------------------------------
   16. POLISHED SELECTION
   One more browser-default detail becomes unmistakably ours.
   --------------------------------------------------------- */

::selection{
  background: rgba(47,109,246,.24);
  color: var(--text-0);
}

/* ---------------------------------------------------------
   MOTION SAFETY
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  main.content,
  .lfm_menu_logo{
    animation: none !important;
  }

  .btn-hot::after,
  .btn-primary.is-hot::after,
  .btn.btn-primary.is-hot::after{
    animation: none !important;
  }
}

/* =========================================================
   PLUS 1 ADS — PREMIUM GLOBAL POLISH V2 — 2026-09-29
   A more visible brand-and-depth pass. Still calm; no gimmicks.
   ========================================================= */

:root{
  --p1-v2-blue-glow: rgba(47,109,246,.14);
  --p1-v2-warm-glow: rgba(245,158,11,.10);
  --p1-v2-depth-glow: rgba(109,61,214,.10);
  --p1-v2-card-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 10px 26px rgba(15,23,42,.07),
    0 24px 56px rgba(15,23,42,.035);
  --p1-v2-card-hover-shadow:
    0 2px 6px rgba(15,23,42,.05),
    0 16px 34px rgba(15,23,42,.10),
    0 30px 70px rgba(47,109,246,.06);
}

/* ---------------------------------------------------------
   1. PAGE ATMOSPHERE
   Make the application canvas visibly richer at rest.
   --------------------------------------------------------- */
body{
  background:
    radial-gradient(1050px 520px at 8% -8%, rgba(47,109,246,.115), transparent 66%),
    radial-gradient(820px 440px at 98% 6%, rgba(245,158,11,.075), transparent 67%),
    radial-gradient(760px 460px at 78% 96%, rgba(109,61,214,.045), transparent 72%),
    linear-gradient(180deg, #fbfcff 0%, #f5f8fc 46%, var(--bg-page) 100%);
}

main.content{
  position: relative;
  isolation: isolate;
}

main.content::before{
  content: "";
  position: fixed;
  inset: 84px 0 0 var(--sidebar-w);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 280px at 18% 10%, rgba(47,109,246,.045), transparent 72%),
    radial-gradient(520px 260px at 86% 16%, rgba(245,158,11,.035), transparent 72%);
}

.lfm_slidebar.toggled + .main main.content::before{
  left: 0;
}

/* ---------------------------------------------------------
   2. TOPBAR: CRISPER GLASS + BRAND THREAD
   --------------------------------------------------------- */
.lfm_topbar{
  background:
    radial-gradient(620px 210px at 10% -55%, rgba(47,109,246,.11), transparent 64%),
    radial-gradient(420px 180px at 92% -70%, rgba(245,158,11,.055), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.955) 0%, rgba(247,250,255,.91) 100%);
  border-bottom-color: #dbe4f0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 28px rgba(15,23,42,.055),
    0 1px 0 rgba(47,109,246,.025);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.lfm_topbar::after{
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(47,109,246,.58) 0%,
    rgba(47,109,246,.14) 45%,
    rgba(245,158,11,.34) 78%,
    rgba(109,61,214,.24) 100%
  );
  box-shadow: 0 2px 10px rgba(47,109,246,.08);
}

/* ---------------------------------------------------------
   3. SIDEBAR: DEEPER MATERIAL + MORE VISIBLE ACTIVE STATE
   --------------------------------------------------------- */
.lfm_slidebar{
  background:
    radial-gradient(300px 210px at -6% -2%, rgba(47,109,246,.17), transparent 62%),
    radial-gradient(320px 220px at 112% 92%, rgba(245,158,11,.12), transparent 64%),
    linear-gradient(180deg, #101a2f 0%, #0d1628 52%, #0a1221 100%);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.025);
}

.lfm_sidebar_brand{
  padding-top: 10px;
  padding-bottom: 16px;
}

.lfm_menu_logo{
  filter:
    drop-shadow(0 12px 28px rgba(0,0,0,.38))
    drop-shadow(0 0 16px rgba(47,109,246,.12));
}

.lfm_menu_item a{
  border-color: rgba(255,255,255,.015);
}

.lfm_menu_item a:hover{
  background: linear-gradient(90deg, rgba(47,109,246,.08), rgba(255,255,255,.055));
  border-color: rgba(255,255,255,.09);
}

.lfm_menu_item a.active,
.lfm_menu_item a[aria-current="page"]{
  background:
    radial-gradient(160px 90px at 22% 8%, rgba(255,255,255,.08), transparent 72%),
    linear-gradient(90deg, rgba(47,109,246,.31) 0%, rgba(245,158,11,.23) 76%, rgba(109,61,214,.16) 100%);
  border-color: rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.26),
    0 16px 36px rgba(0,0,0,.46),
    0 0 22px rgba(47,109,246,.075);
}

.lfm_menu_item a.active::before,
.lfm_menu_item a[aria-current="page"]::before{
  width: 4px;
  top: 9px;
  bottom: 9px;
  background: linear-gradient(180deg, #5b8cff 0%, var(--brand-warm) 62%, #8b5cf6 100%);
  box-shadow:
    0 0 10px rgba(47,109,246,.42),
    0 0 20px rgba(245,158,11,.12);
}

/* ---------------------------------------------------------
   4. CARDS: MORE LUXURIOUS AT REST
   --------------------------------------------------------- */
.card,
.panel,
.well,
.infobar,
fieldset{
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 58%, #f9fbfe 100%) !important;
  border-color: #d8e2ee !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(15,23,42,.018),
    var(--p1-v2-card-shadow) !important;
}

.p1-card,
.p1-panel{
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 58%, #f9fbfe 100%);
  border-color: #d8e2ee;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(15,23,42,.018),
    var(--p1-v2-card-shadow);
}

.card-header,
.panel-heading,
.box-header,
.lfm_panel_header{
  background:
    radial-gradient(420px 100px at 10% 0%, rgba(47,109,246,.055), transparent 68%),
    linear-gradient(180deg, #fcfdff 0%, #f3f7fc 100%) !important;
  border-bottom-color: #dbe4ef !important;
}

/* Give cards with meaningful states a subtle color identity. */
.p1-pro-context{
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(109,61,214,.075), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 12px 30px rgba(109,61,214,.075);
}

.p1-hero{
  background:
    radial-gradient(700px 300px at 84% 12%, rgba(245,158,11,.17), transparent 60%),
    radial-gradient(620px 270px at 10% -8%, rgba(47,109,246,.095), transparent 61%),
    radial-gradient(460px 220px at 92% 96%, rgba(109,61,214,.045), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  border-color: #e7d8bd;
}

/* ---------------------------------------------------------
   5. BUTTONS: STRONGER PHYSICALITY
   --------------------------------------------------------- */
.btn,
button,
input[type="submit"],
input[type="button"],
.buttonlink,
a.btn{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 2px 5px rgba(15,23,42,.055),
    0 8px 18px rgba(15,23,42,.035);
}

.btn-primary,
.btn.btn-primary{
  background: linear-gradient(180deg, #4a84ff 0%, #2f6df6 62%, #285fdc 100%) !important;
  border-color: #2a61df !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    0 10px 22px rgba(47,109,246,.20),
    0 2px 5px rgba(15,23,42,.06);
}

.btn-hot,
.btn-primary.is-hot,
.btn.btn-primary.is-hot{
  background: linear-gradient(180deg, #ffd05a 0%, #f7ad18 45%, #e99508 100%) !important;
  border-color: #d98c08 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 11px 24px rgba(245,158,11,.24),
    0 2px 5px rgba(15,23,42,.05);
}

@media (hover:hover) and (pointer:fine){
  .btn:hover,
  button:hover,
  input[type="submit"]:hover,
  input[type="button"]:hover,
  .buttonlink:hover,
  a.btn:hover{
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.96),
      0 5px 12px rgba(15,23,42,.08),
      0 14px 26px rgba(15,23,42,.055);
  }

  .btn-primary:hover,
  .btn.btn-primary:hover{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.32),
      0 16px 32px rgba(47,109,246,.27),
      0 3px 8px rgba(15,23,42,.07);
  }

  .btn-hot:hover,
  .btn-primary.is-hot:hover,
  .btn.btn-primary.is-hot:hover{
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.48),
      0 16px 34px rgba(245,158,11,.30),
      0 3px 8px rgba(15,23,42,.06);
  }
}

/* ---------------------------------------------------------
   6. INTERACTIVE CARDS: MAKE THEM OBVIOUSLY INTERACTIVE
   --------------------------------------------------------- */
@media (hover:hover) and (pointer:fine){
  a.p1-card:hover,
  a.card:hover,
  .p1-card[role="button"]:hover,
  .card[role="button"]:hover{
    transform: translateY(-4px);
    border-color: #bfd3ef !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.98),
      var(--p1-v2-card-hover-shadow) !important;
  }
}

/* ---------------------------------------------------------
   7. FORMS: CLEANER FOCUS + STRONGER CONFIDENCE
   --------------------------------------------------------- */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea{
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;
  border-color: #cfd9e6 !important;
  box-shadow:
    inset 0 1px 2px rgba(15,23,42,.025),
    0 1px 2px rgba(15,23,42,.025) !important;
}

.form-control:focus,
input:not([type]):focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus{
  border-color: #86adff !important;
  box-shadow:
    0 0 0 4px rgba(47,109,246,.13),
    0 8px 18px rgba(47,109,246,.055) !important;
}

/* ---------------------------------------------------------
   8. TABLES: LESS FLAT, MORE ANALYTICAL
   --------------------------------------------------------- */
.table,
table{
  border-color: #dbe3ed !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 8px 22px rgba(15,23,42,.045);
}

.table thead th,
table thead th{
  background:
    linear-gradient(180deg, #f7faff 0%, #edf4fb 100%) !important;
  color: #41506a !important;
}

.table tbody tr:hover,
table tbody tr:hover{
  background: linear-gradient(90deg, #f5f9ff 0%, #fbfdff 100%) !important;
}

.table tbody tr:hover > :first-child,
table tbody tr:hover > :first-child{
  box-shadow: inset 4px 0 0 rgba(47,109,246,.42);
}

/* ---------------------------------------------------------
   9. LINKS + DIVIDERS: VISIBLE BRAND REFINEMENT
   --------------------------------------------------------- */
main.content :where(p, li, .p1-help, .p1-note__copy) > a:not(.btn):not(.buttonlink){
  text-decoration-color: rgba(47,109,246,.32);
  text-decoration-thickness: 1.5px;
  transition:
    color var(--duration-fast) var(--ease),
    text-decoration-color var(--duration-fast) var(--ease),
    text-underline-offset var(--duration-fast) var(--ease);
}

hr,
.p1-divider{
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(47,109,246,.16) 14%,
    var(--line-0) 38%,
    var(--line-0) 62%,
    rgba(245,158,11,.14) 86%,
    transparent 100%
  );
}

/* ---------------------------------------------------------
   10. EMPTY STATES + AVATARS: MORE HUMAN, LESS EMPTY
   --------------------------------------------------------- */
.p1-empty{
  background:
    radial-gradient(420px 200px at 8% -4%, rgba(47,109,246,.085), transparent 70%),
    radial-gradient(360px 180px at 96% 106%, rgba(245,158,11,.055), transparent 72%),
    linear-gradient(180deg,#ffffff 0%,#fafcff 100%);
  border-color: #cfdae8;
}

.p1-empty__icon{
  background: linear-gradient(145deg, #edf4ff 0%, #dceaff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 24px rgba(47,109,246,.12);
}

.p1-avatar{
  box-shadow:
    0 0 0 3px rgba(255,255,255,.94),
    0 0 0 4px rgba(47,109,246,.055),
    0 8px 20px rgba(15,23,42,.09);
}

/* ---------------------------------------------------------
   11. PAGE ARRIVAL: A LITTLE MORE VISIBLE
   --------------------------------------------------------- */
@keyframes p1-page-arrive-v2{
  from{
    opacity: 0;
    transform: translateY(8px) scale(.997);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion:no-preference){
  main.content{
    animation: p1-page-arrive-v2 300ms var(--p1-ease-premium) both;
  }
}

/* ---------------------------------------------------------
   12. BRAND BREATHING: ACTUALLY NOTICEABLE, STILL QUIET
   --------------------------------------------------------- */
@keyframes p1-brand-breathe-v2{
  0%,100%{
    filter:
      drop-shadow(0 12px 28px rgba(0,0,0,.38))
      drop-shadow(0 0 8px rgba(47,109,246,.10));
  }
  50%{
    filter:
      drop-shadow(0 12px 28px rgba(0,0,0,.38))
      drop-shadow(0 0 22px rgba(47,109,246,.26))
      drop-shadow(0 0 28px rgba(245,158,11,.08));
  }
}

@media (prefers-reduced-motion:no-preference){
  .lfm_menu_logo{
    animation: p1-brand-breathe-v2 8s ease-in-out infinite;
  }
}

/* ---------------------------------------------------------
   13. MOTION SAFETY
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  main.content,
  .lfm_menu_logo{
    animation: none !important;
  }
}
