/* BrainLock — Global Styles
   ========================================================== */

/* CSS Reset lite */
*, *::before, *::after { box-sizing: border-box; }

/* Universal page wrapper — consistent padding on all screen sizes */
.page_wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 12px;
}


/* Theme classes — only change the variables */
.dark_theme {
  --bg_plank: #000;
  --bg_plank_inv: #f2f2f2;
  --bg_clr: #0f1116;
  --card_clr: #1b1d22;
  --card_clr_lit: #26292f;
  --card_clr_lit2: #575f71;
  --light_gray_tex: #7f889b;
  --trim_clr: #2d3037;
  --text_clr: #DDD;
  --nutural_clr: #555;
  --dim: rgba(0, 0, 0, 0.6);
  --glass_bg: rgba(255,255,255, 0.075);
  --top_bev_clr: #000;
  --bottom_bev_clr: rgba(255,255,255,0.06);
  --link_clr: #0096ff;
  --ice_clr: var(--text_clr);
  --police_clr: var(--text_clr);
}

.light_theme {
  --bg_plank: #fff;
  --bg_plank_inv: #000;
  --bg_clr: #ececec;
  --card_clr: #f6f6f6;
  --card_clr_lite: #f9f9f9;
  --trim_clr: #ccc;
  --text_clr: #111827;
  --nutural_clr: #555;
  --dim: rgba(255,255,255, 0.5);
  --glass_bg: rgba(0,0,0,0.1);
  --top_bev_clr: rgba(0,0,0,0.08);
  --bottom_bev_clr: #fff;
  --link_clr: #6280bd;
  --ice_clr: var(--text_clr);
  --police_clr: var(--text_clr);
}

:root {
  --accent_red: #ff0042;
  --accent_blue: #007AFF;
  --accent_green: #99cc00;
  --accent_green_2: #78a000;
  --accent_orange: #ff4e00;
  --accent_orange_2: #cb360e;
  --accent_yellow: #ff9100;
}

/* Accent utility classes */
.accent_red { color: var(--accent_red); }
.accent_blue { color: var(--accent_blue);}
.accent_green { color: var(--accent_green); }
.accent_orange { color: var(--accent_orange); }
.accent_yellow { color: var(--accent_yellow); }
.card_lite { color: var(--card_clr_lit2); }

/* Background utility classes */
.bg_plank { background-color: var(--bg_plank); }
.bg_color { background-color: var(--bg_clr); }


.card_color_solid { background-color: var(--card_clr); }

/*bottom_bev_clr*/

.card_color {
  background: var(--card_clr);
/*  background: linear-gradient(to bottom, var(--bottom_bev_clr) 0%, color-mix(in srgb, var(--card_clr) 90%, black 10%) 100%);*/
  background: linear-gradient(-25deg, var(--card_clr_lit) 0%, var(--card_clr) 80%);
}

.card_color_green {
  background: var(--accent_green);
/*  background: linear-gradient(to bottom, var(--bottom_bev_clr) 0%, color-mix(in srgb, var(--card_clr) 90%, black 10%) 100%);*/
  background: linear-gradient(-25deg, var(--accent_green) 0%, var(--accent_green_2) 80%);
    
  border-color: var(--accent_green) !important;
}

.card_color_orange {
  background: var(--accent_orange);
  background: linear-gradient(-25deg, var(--accent_orange) 0%, var(--accent_orange_2) 80%);
  border-color: var(--accent_orange) !important;
}

.txt_color { color: var(--text_clr); }
.trim_clr { background-color: var(--card_clr); }
.dim { background-color: var(--dim); }

.hide { display: none; }
.centered { text-align: center; }
.center { text-align: center; }
.f_right { float: right; }
.f_left { float: left; }


.mob_only { display: none; }
.desk_only { display: block; }

html, body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body { padding-top: 110px; }

body.color_active_headings {
  --ice_clr: #39f3ff;
  --police_clr: #1d54d1;
}


/* ---- Typography ---- */
h1, h2, h3, .header_font {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: var(--bg_plank_inv);
  line-height: 1.15em;
}

body, .body_font_serif, textarea::placeholder {
  /* font-family: "Noto Serif", serif; */
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 300;
}

.body_font_sans, .btn {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 300;
}

h1, h2, h3 { margin: 0 0 0 0; }
h1 { font-size: 2.7rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }


/* p paragraph  */
p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.8;
  margin: 20px auto;
}
p:last-child { margin-bottom: 0; }

p.standfirst {
  font-size: 18px;
  line-height: 1.8;
  opacity: 1;
  font-weight: 400;
}

.display_text, .display_text_2, .display_text_3 {
  text-transform: uppercase;
  font-size: 3em;
  font-weight: 700;
  
  /* text-shadow: 1px 1px 1px #000; */
}

.display_text_2 {
  font-size: 1.8em;
  margin: 40px 0 10px 0;
}

.display_text_3 {
    font-size: 1.8em;
}

.display_text_utility {
    font-size: 1.8em;
    margin: 0 0 20px 10px;
}

.display_dialog_head {
    margin-top: 15px;
}

.display_dialog {
  text-transform: uppercase;
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
}

.display_dialog_sub {
  margin: 4px 0 0; opacity: 1; font-size: 14px;
  color: var(--accent_blue);
}

.dialog_signup_header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px 10px;
  flex-wrap: nowrap;
}

.inline_required {
  color: var(--accent_red);
  font-weight: 400;
  font-size: 11px;
  text-transform: none;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.inline_required.visible {
  opacity: 1;
}

.inline_required::before {
  content: '\2190 required';
}

.overlay_info {
  margin: 0 0 15px 0; font-size:16px; opacity:0.7;
}

.styling_text_white {
  background: #fff;
  background: linear-gradient(95deg, #9ca1a7 0%, #fff 80%, var#7a7f85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.styling_text_orange {
  background: var(--accent_orange);
  background: linear-gradient(95deg, var(--accent_orange) 10%, var(--accent_yellow) 60%, var(--accent_orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.styling_text_gray {
  background: var(--card_clr_lit2);
  background: linear-gradient(75deg, var(--card_clr_lit2) 20%, var(--card_clr_lit) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.styling_text_green {
  background: var(--accent_green);
  background: linear-gradient(95deg, var(--accent_green) 10%, var(--accent_green_2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.styling_text_blue, .panel_sub_link:hover {
  background: var(--accent_blue);
  background: linear-gradient(95deg, var(--accent_blue) 10%, #409cff 60%), var(--accent_blue) 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline_display, .tagline_display_2 {
  font-family: "Geist Mono", monospace;
  margin-top: 10px;
  /* opacity: 0.6; */
  max-width: 500px;
  margin: 20px auto;
  color: #fff;
  font-size: 1.2em;
  line-height: 1.5em;
}

.tagline_display_2 {
  font-size: 1.1em;
  
}

.spacer { height: 40px; }

a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  color: var(--link_clr);
}

::placeholder {
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  font-variation-settings: "wdth" 200;
  line-height: 1.1em;
}

textarea::placeholder {
  line-height: 1.2em;
  font-size: 16px;
  padding-top: 0;
}


/* ---- SVG Icon System ---- */
.icon_svg {
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.svg_icon, .svg_inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.svg_inline {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.svg_inline_heading {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 2px;
}

.icon_main_menu {
  -webkit-mask-image: url("/assets/icons/icon_menu.svg");
  mask-image: url("/assets/icons/icon_menu.svg");
  width: 28px;
  height: 28px;
  background-color: var(--nutural_clr);
}

.icon_secure_main_menu {
  -webkit-mask-image: url("/assets/icons/icon_lock.svg");
  mask-image: url("/assets/icons/icon_lock.svg");
  width: 28px;
  height: 28px;
  background-color: var(--nutural_clr);
}


.svg_bars { -webkit-mask-image: url('/assets/icons/icon_menu.svg'); mask-image: url('/assets/icons/icon_menu.svg'); }
.svg_heart { -webkit-mask-image: url('/assets/icons/icon_heart.svg'); mask-image: url('/assets/icons/icon_heart.svg'); }
.svg_star { -webkit-mask-image: url('/assets/icons/icon_star.svg'); mask-image: url('/assets/icons/icon_star.svg'); }
.svg_home { -webkit-mask-image: url('/assets/icons/icon_home.svg'); mask-image: url('/assets/icons/icon_home.svg'); }
.svg_ice { -webkit-mask-image: url('/assets/icons/icon_ice.svg'); mask-image: url('/assets/icons/icon_ice.svg'); }
.svg_police { -webkit-mask-image: url('/assets/icons/icon_police.svg'); mask-image: url('/assets/icons/icon_police.svg'); }
.svg_user { -webkit-mask-image: url('/assets/icons/icon_user.svg'); mask-image: url('/assets/icons/icon_user.svg'); }
.svg_refresh { -webkit-mask-image: url('/assets/icons/icon_refresh.svg'); mask-image: url('/assets/icons/icon_refresh.svg'); }

/* Refresh button on the sign-in question UIs — cycles to the next enrolled
   question when the user has more than one.
   Two layout modes:
     1. Inside .question_label_wrap — absolute, slightly overhanging the
        right edge (used by sign-in overlay's question modes). Stable when
        the label wraps to multiple lines.
     2. Plain — inline-flex next to the label (used in Step 2b where the
        label sits in a flex row alongside another link). */
.question_refresh_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card_clr);
  border: 1px solid var(--trim_clr);
  cursor: pointer;
  vertical-align: middle;
  margin-left: 6px;
  transition: background-color 0.15s, transform 0.25s, border-color 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.question_refresh_btn:hover {
  background-color: var(--accent_blue);
  border-color: var(--accent_blue);
}
.question_refresh_btn:active { transform: rotate(90deg); }
.question_refresh_btn .svg_refresh {
  width: 14px;
  height: 14px;
  background-color: #fff;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Anchored mode — absolute positioning, slight overhang past the wrap's
   right edge. The wrap reserves padding-right so wrapping text never runs
   under the button. */
.question_label_wrap {
  position: relative;
  padding-right: 36px;
}
.question_label_wrap .question_refresh_btn {
  position: absolute;
  top: -4px;
  right: 0;            /* flush with the wrap's right edge — no overhang, no clip */
  width: 28px;
  height: 28px;
  margin-left: 0;
  z-index: 5;
}
.question_label_wrap .question_refresh_btn .svg_refresh {
  width: 18px;
  height: 18px;
}

.list_holder {
    font-size: 24px;
    font-weight: 500;
    font-family: "Oswald", sans-serif;
    color: var(--card_clr_lit2) !important;
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    text-align: center;
    opacity: .5;
}

.list_holder .svg_icon {
    width:60px;
    height: 60px; 
    background-color: var(--card_clr_lit2);
}

.svg_settings { -webkit-mask-image: url('/assets/icons/icon_gear.svg'); mask-image: url('/assets/icons/icon_gear.svg'); }
.svg_chat_dots { -webkit-mask-image: url('/assets/icons/icon_chat_dots.svg'); mask-image: url('/assets/icons/icon_chat_dots.svg'); }
.svg_bell { -webkit-mask-image: url('/assets/icons/icon_bell.svg'); mask-image: url('/assets/icons/icon_bell.svg'); }
.svg_edit { -webkit-mask-image: url('/assets/icons/icon_edit.svg'); mask-image: url('/assets/icons/icon_edit.svg'); }
.svg_rss { -webkit-mask-image: url('/assets/icons/icon_rss2.svg'); mask-image: url('/assets/icons/icon_rss2.svg'); }
.svg_x { -webkit-mask-image: url('/assets/icons/icon_close_x.svg'); mask-image: url('/assets/icons/icon_close_x.svg'); }
.svg_scale { -webkit-mask-image: url('/assets/icons/icon_scale.svg'); mask-image: url('/assets/icons/icon_scale.svg'); }
.svg_question { -webkit-mask-image: url('/assets/icons/icon_chat_question.svg'); mask-image: url('/assets/icons/icon_chat_question.svg'); }
.svg_gavel { -webkit-mask-image: url('/assets/icons/icon_gavel.svg'); mask-image: url('/assets/icons/icon_gavel.svg'); }
.svg_power { -webkit-mask-image: url('/assets/icons/icon_power.svg'); mask-image: url('/assets/icons/icon_power.svg'); }
.svg_mail { -webkit-mask-image: url('/assets/icons/icon_mail.svg'); mask-image: url('/assets/icons/icon_mail.svg'); }
.svg_info { -webkit-mask-image: url('/assets/icons/icon_info.svg'); mask-image: url('/assets/icons/icon_info.svg'); }
.svg_fire { -webkit-mask-image: url('/assets/icons/icon_fire.svg'); mask-image: url('/assets/icons/icon_fire.svg'); }
.svg_bookmark { -webkit-mask-image: url('/assets/icons/icon_bookmark_solid.svg'); mask-image: url('/assets/icons/icon_bookmark_solid.svg'); }
.svg_chevron_right { -webkit-mask-image: url('/assets/icons/icon_chevron_right.svg'); mask-image: url('/assets/icons/icon_chevron_right.svg'); }
.svg_chevron_left { -webkit-mask-image: url('/assets/icons/icon_chevron_left.svg'); mask-image: url('/assets/icons/icon_chevron_left.svg'); }
.svg_sort { -webkit-mask-image: url('/assets/icons/icon_sort.svg'); mask-image: url('/assets/icons/icon_sort.svg'); }
.svg_location { -webkit-mask-image: url('/assets/icons/icon_location.svg'); mask-image: url('/assets/icons/icon_location.svg'); }
.svg_circle_plus { -webkit-mask-image: url('/assets/icons/circle_plus.svg'); mask-image: url('/assets/icons/circle_plus.svg'); }
.svg_plus { -webkit-mask-image: url('/assets/icons/plus.svg'); mask-image: url('/assets/icons/plus.svg'); }
.svg_circle_minus { -webkit-mask-image: url('/assets/icons/circle_minus.svg'); mask-image: url('/assets/icons/circle_minus.svg'); }
.svg_circle_plus_ol { -webkit-mask-image: url('/assets/icons/circle_plus_ol.svg'); mask-image: url('/assets/icons/circle_plus_ol.svg'); }
.svg_circle_minus_ol { -webkit-mask-image: url('/assets/icons/circle_minus_ol.svg'); mask-image: url('/assets/icons/circle_minus_ol.svg'); }
.svg_globe { -webkit-mask-image: url('/assets/icons/globe.svg'); mask-image: url('/assets/icons/globe.svg'); }
.svg_expand { -webkit-mask-image: url('/assets/icons/expand.svg'); mask-image: url('/assets/icons/expand.svg'); }
.svg_contract { -webkit-mask-image: url('/assets/icons/contract.svg'); mask-image: url('/assets/icons/contract.svg'); }
.svg_movie { -webkit-mask-image: url('/assets/icons/movie.svg'); mask-image: url('/assets/icons/movie.svg'); }
.svg_music { -webkit-mask-image: url('/assets/icons/music.svg'); mask-image: url('/assets/icons/music.svg'); }
.svg_image { -webkit-mask-image: url('/assets/icons/icon_image.svg'); mask-image: url('/assets/icons/icon_image.svg'); }
.svg_lock { -webkit-mask-image: url('/assets/icons/icon_lock.svg'); mask-image: url('/assets/icons/icon_lock.svg'); }
.svg_ban { -webkit-mask-image: url('/assets/icons/icon_ban.svg'); mask-image: url('/assets/icons/icon_ban.svg'); }
.svg_shield { -webkit-mask-image: url('/assets/icons/icon_shield.svg'); mask-image: url('/assets/icons/icon_shield.svg'); }
.svg_exclamation { -webkit-mask-image: url('/assets/icons/icon_exclamation.svg'); mask-image: url('/assets/icons/icon_exclamation.svg'); }

/* Vault category icons */
.svg_card      { -webkit-mask-image: url('/assets/icons/credit-card-solid-full.svg');         mask-image: url('/assets/icons/credit-card-solid-full.svg'); }
.svg_keypad    { -webkit-mask-image: url('/assets/icons/square-binary-solid-full.svg');       mask-image: url('/assets/icons/square-binary-solid-full.svg'); }
.svg_folder    { -webkit-mask-image: url('/assets/icons/folder-solid-full.svg');              mask-image: url('/assets/icons/folder-solid-full.svg'); }
.svg_coins     { -webkit-mask-image: url('/assets/icons/coins-solid-full.svg');               mask-image: url('/assets/icons/coins-solid-full.svg'); }
.svg_lock_open { -webkit-mask-image: url('/assets/icons/lock-open-solid-full.svg');           mask-image: url('/assets/icons/lock-open-solid-full.svg'); }
.svg_code      { -webkit-mask-image: url('/assets/icons/code-solid-full.svg');                mask-image: url('/assets/icons/code-solid-full.svg'); }
.svg_key       { -webkit-mask-image: url('/assets/icons/key-solid-full.svg');                 mask-image: url('/assets/icons/key-solid-full.svg'); }
.svg_id_card   { -webkit-mask-image: url('/assets/icons/id-card-regular-full.svg');           mask-image: url('/assets/icons/id-card-regular-full.svg'); }
.svg_passport  { -webkit-mask-image: url('/assets/icons/passport-solid-full.svg');            mask-image: url('/assets/icons/passport-solid-full.svg'); }
.svg_id_badge  { -webkit-mask-image: url('/assets/icons/id-badge-solid-full.svg');            mask-image: url('/assets/icons/id-badge-solid-full.svg'); }
.svg_money     { -webkit-mask-image: url('/assets/icons/money-check-dollar-solid-full.svg');  mask-image: url('/assets/icons/money-check-dollar-solid-full.svg'); }
.svg_users     { -webkit-mask-image: url('/assets/icons/users-rectangle-solid-full.svg');     mask-image: url('/assets/icons/users-rectangle-solid-full.svg'); }
.svg_server    { -webkit-mask-image: url('/assets/icons/server-solid-full.svg');              mask-image: url('/assets/icons/server-solid-full.svg'); }
.svg_database  { -webkit-mask-image: url('/assets/icons/database-solid-full.svg');            mask-image: url('/assets/icons/database-solid-full.svg'); }
.svg_search  { -webkit-mask-image: url('/assets/icons/icon_search.svg');            mask-image: url('/assets/icons/icon_search.svg'); }
.svg_vault   { -webkit-mask-image: url('/assets/icons/vault-solid-full.svg');       mask-image: url('/assets/icons/vault-solid-full.svg'); }
.svg_copy    { -webkit-mask-image: url('/assets/icons/icon_copy.svg');              mask-image: url('/assets/icons/icon_copy.svg'); }
.svg_eye     { -webkit-mask-image: url('/assets/icons/icon_eye.svg');               mask-image: url('/assets/icons/icon_eye.svg'); }

/* Vault subpages: shared min-height so left + middle cards anchor to the
   same baseline regardless of content. Pair with feed_card or feed_left_card.
   The compound selectors are required — there's a later
   .feed_card { min-height: 40px } rule that overrides the single-class form. */
/*
.feed_card.feed_card_fill_screen,
.feed_left_card.feed_card_fill_screen {
  min-height: calc(100vh - 150px);
}
*/
/* Vertical centering for placeholder pages only (e.g. /vault landing,
   /wallet coming-soon). Combine with feed_card_fill_screen for height. */
.feed_card.feed_card_v_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- Secure Note editor overlay ----
   Replaces the standard bl_overlay_header h2 with a free-form title input.
   Body holds an auto-growing textarea; once content exceeds the visible
   body height, .dialog_body's overflow-y:auto kicks in — header + footer
   stay pinned via their absolute positioning. */
.note_dialog_title_wrap {
  position: absolute;
  top: 20px;
  left: 25px;
  right: 52px;
  z-index: 1;
}
.note_title_input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 10px;
  color: #fff;
  padding: 12px 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.note_title_input::placeholder { color: rgba(255,255,255,0.35); }
.note_title_input:focus:not([readonly]) { border-color: var(--accent_blue); }

/* Wrapping read-only title (no container). Only the title area changes —
   no other layout is touched. May visually collide with the body when the
   title is long; that is intentional and accepted for now. */
.note_title_display {
  font-family: "Open Sans", sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  padding: 12px 18px;
  word-break: break-word;
  white-space: pre-wrap;
}
.note_dialog.is_editing  .note_title_display { display: none; }
.note_dialog:not(.is_editing) .note_title_input { display: none; }

/* Read-only body view — same visual frame as the textarea but rendered
   HTML so URLs become clickable links. Toggled via .is_editing class. */
.note_body_display {
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 12px;
  color: var(--light_gray_tex);
  font-family: "Geist Mono", monospace;
  font-size: 1em;
  line-height: 1.5;
  box-sizing: border-box;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.note_body_display a {
  color: var(--accent_blue);
  text-decoration: underline;
}
.note_dialog.is_editing  .note_body_display { display: none; }
.note_dialog:not(.is_editing) .note_body_input { display: none; }

/* Note body fills its container exactly and scrolls internally — the
   .dialog_body wrapper itself does NOT scroll, which keeps the title and
   footer regions visually fixed with no bleed-through behind them. */
.note_body_input {
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 12px;
  color: var(--light_gray_tex);
  font-family: "Geist Mono", monospace;
  font-size: 1em;
  line-height: 1.5;
  resize: none;
  outline: none;
  box-sizing: border-box;
  display: block;
  overflow: auto;
  transition: border-color 0.15s;
}
.note_body_input::placeholder { color: rgba(255,255,255,0.3); }
.note_body_input:focus:not([readonly]) { border-color: var(--accent_blue); }

/* Outer body just provides the bounded box — no scrolling itself. */
.note_dialog_body { overflow: hidden; }

.note_dialog_footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: more clearance below the title input so the body doesn't crowd. */
@media (max-width: 600px) {
  .note_dialog .dialog_body { top: 84px; }
}

/* ---- Login dialog ----
   Reuses .note_dialog title pattern (display ↔ input via .is_editing).
   .login_dialog also rides on .note_dialog so the title CSS applies. */
.login_dialog .login_readonly_view,
.login_dialog .login_edit_view { padding-bottom: 16px; }

.login_dialog.is_editing      .login_readonly_view { display: none; }
.login_dialog:not(.is_editing) .login_edit_view    { display: none; }

.login_field {
  margin-bottom: 10px;
}

.login_field_label {
  display: block;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nutural_clr);
  margin-bottom: 3px;
    margin-left: 8px;
}
.login_field_value {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  word-break: break-word;
  font-family: "Geist Mono", monospace;
  font-size: 1.1em;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(0,0,0,0.7);
  background: var(--bg_clr);
/*  border: 1px solid var(--trim_clr);*/
  -webkit-box-shadow: inset 0px 3px 6px 0px rgba(0,0,0,0.4);
  box-shadow: inset 0px 3px 6px 0px rgba(0,0,0,0.4);
}
/* Notes value content (linkified text + nested links) inherits monospace */
.utility_notes_value, .utility_notes_value a {
  font-family: "Geist Mono", monospace;
}

.utility_notes_value {
    min-height: 100px;
    /* Override the parent's align-items:center so the wrapped notes text
       starts at the top of the box rather than vertically centered. */
    align-items: flex-start;
}

/* Push the first inline action button (and any siblings after it) to the
   right edge of the field value. The leading text/value flex item fills
   the available space. */
.login_field_value .login_inline_btn:first-of-type {
    margin-left: auto;
}

.login_value_text {
  font-family: "Geist Mono", monospace;
  font-size: 1.05em;
  color: #fff;
}
.login_password_masked { letter-spacing: 0.15em; }
.login_link {
  color: var(--accent_blue);
  text-decoration: underline;
  word-break: break-all;
}
.login_inline_btn {
  float: right;
  background: transparent;
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 6px;
  color: var(--nutural_clr);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login_inline_btn .icon_svg {
  width: 16px;
  height: 16px;
  background-color: var(--nutural_clr);
}
.login_inline_btn:hover { border-color: var(--accent_blue); color: var(--accent_blue); }
.login_inline_btn:hover .icon_svg { background-color: var(--accent_blue); }

.login_totp_row { align-items: center; }
.login_totp_code {
  font-family: "Geist Mono", monospace;
  font-size: 1.6em;
  letter-spacing: 0.1em;
  color: var(--accent_orange);
}
.login_totp_seconds {
  font-family: "Geist Mono", monospace;
  font-size: 0.7em;
  font-weight: 400;
  margin-left: 8px;
  color: var(--nutural_clr);
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0;
}

.login_notes_input { resize: vertical; min-height: 90px; }

/* Login dialog inputs — override the global capitalize so usernames, URLs,
   passwords, TOTP secrets are entered exactly as typed/pasted. */
.login_dialog .input_text { text-transform: none; }

/* Password field with eye toggle on the right */
.login_password_wrap { position: relative; }
.login_password_wrap .input_text { padding-right: 44px; }
.login_password_toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--nutural_clr);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login_password_toggle:hover { color: var(--accent_orange); }
.login_password_toggle.is_visible { color: var(--accent_orange); }

/* ----------------------------------------------------------------------
   Mobile + utility pages (/vault/*, /wallet/*): pin the middle column to
   the viewport so iOS Safari's bottom toolbar doesn't keep resizing the
   layout. Mirrors how the dialog overlay handles the same problem.
   Scoped tightly to body.is_utility_page so non-utility pages keep their
   normal page-scrolling layout, and to mobile widths only.
   ---------------------------------------------------------------------- */
@media (max-width: 600px) {
  body.is_utility_page { overflow: hidden; }

  body.is_utility_page .col.middle_col {
    position: fixed;
    /* Matches body's padding-top (75px) — top_menu is 60px + shadow/border
       and the BrainLock logo image overflows a few px on iPhone; 75 gives
       the same buffer the rest of the layout uses. */
    top: 75px;
    left: 0;
    right: 0;
    /* Honor the iOS home-indicator safe area; falls back to 0 elsewhere. */
    bottom: env(safe-area-inset-bottom, 0);
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* Card fills the (already-pinned) parent column. Both rules layered:
     iOS < 15.4 picks the vh fallback; modern browsers use dvh, which
     adapts to the iOS toolbar showing/hiding so the card never
     out-stretches the visible area. (95 = 75 top + 20 padding+gutter.) */
  body.is_utility_page .col.middle_col .feed_card.feed_card_fill_screen {
    min-height: calc(100vh - 95px);
    min-height: calc(100dvh - 95px);
  }
}



/*VAULT ITEM*/
.vault_item_cont {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 30px;
  cursor: pointer;
  border: 1px solid transparent;
/*  border-bottom: 1px solid var(--trim_clr);*/
  
}

.vault_item_cont:nth-child(odd) {
    background: rgba(0,0,0,0.2);
}

.vault_item_cont:hover {
  border: 1px solid var(--accent_blue);
  background: linear-gradient(to bottom, var(--accent_blue) 0%, color-mix(in srgb, var(--accent_blue) 75%, black 30%) 100%);
    color: #fff;
}

.vault_item_cont:hover p {
    color: #fff;
}

.vault_item {
    margin: auto;
    max-width: 460px;
    /* Critical: parent .vault_item_cont is a flex container, which gives
       flex children a default min-width of auto (= content size). That
       overrides max-width when content is wider, so a long unwrapping title
       would burst the row. min-width:0 lets max-width win and allows the
       inner ellipsis to clip. */
    min-width: 0;
    flex: 1 1 auto;
/*    border: 1px dashed gold;*/
}

.vault_item h2 {
    font-family: "Open Sans", sans-serif;
    font-size: 1.2em;
    line-height: 1em;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
/*    color: var(--card_clr_lit2);*/
}

.vault_item h2 .vault_item_title {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Outer containment so a long title can't burst the row width even when
   parent layouts forget to clip. */
.vault_item_cont { overflow: hidden; }

.vault_item_time {
    font-size: 0.55em;
    font-weight: 400;
    font-family: "Geist Mono", monospace;
    color: var(--card_clr_lit2);
    opacity: 0.7;
    flex-shrink: 0;
}

.vault_item p {
    font-family: "Geist Mono", monospace;
    font-size: 0.8em;
    line-height: 1.3em;
    color: var(--card_clr_lit2);
    margin: 0;
    opacity: 1;
    /* Limit preview to two lines with an ellipsis. Supported across all
       major browsers via -webkit-line-clamp (also works in Firefox 68+). */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Signup Step 2b "account may exist" header — yellow icon + heading.
   Replaces the numbered blue pill so users immediately read this as a
   different scenario from the regular signup flow. */
.signup_warning_icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent_yellow);
  flex-shrink: 0;
}
.signup_warning_heading {
  color: var(--accent_yellow) !important;
  -webkit-text-fill-color: var(--accent_yellow);
}

/* Floating notice banner — used inside dialog cards (Step 2b on signup, etc).
   Positioned absolutely so it overlays whatever sits above/below the header.
   Fixed height, color-variant via .notice_red / .notice_yellow. Close X
   top-right; toggle visibility with .hidden. */
.floating_notice {
  position: absolute;
  top: 90px;
  left: 18px;
  right: 18px;
  height: 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 12px 56px 12px 20px;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.floating_notice.hidden { display: none; }

/* Generic visibility utility — used by JS to toggle blocks like the
   PIN/question mode swap on Step 2b. !important so it overrides any
   element-level display value (flex, grid, etc.). */
.hidden { display: none !important; }
.floating_notice_count {
  flex-shrink: 0;
  margin-right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.floating_notice_count:empty { display: none; }
.floating_notice_msg {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.floating_notice_close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.floating_notice_close .icon_svg {
  width: 14px;
  height: 14px;
  background-color: #fff;
}
.floating_notice.notice_red {
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_red) 75%, black 30%) 100%);
  border: 2px solid var(--accent_red);
}
.floating_notice.notice_yellow {
  background: linear-gradient(to bottom, var(--accent_yellow) 0%, color-mix(in srgb, var(--accent_yellow) 75%, black 30%) 100%);
  border: 2px solid var(--accent_yellow);
}
.svg_dot { -webkit-mask-image: url('/assets/icons/dot.svg'); mask-image: url('/assets/icons/dot.svg'); }
.svg_circle_ol { -webkit-mask-image: url('/assets/icons/circle_ol.svg'); mask-image: url('/assets/icons/circle_ol.svg'); }
.svg_circle_solid { -webkit-mask-image: url('/assets/icons/circle_solid.svg'); mask-image: url('/assets/icons/circle_solid.svg'); }
.svg_map_pin { -webkit-mask-image: url('/assets/icons/icon_map_pin.svg'); mask-image: url('/assets/icons/icon_map_pin.svg'); }
.svg_camera { -webkit-mask-image: url('/assets/icons/camera.svg'); mask-image: url('/assets/icons/camera.svg'); }


/* ---- Labels & Inputs ---- */
.std_label, .lg_label {
  font-size: 12px;
  margin: 10px 0 8px 6px;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 600;
  text-transform:uppercase;
}

.lg_label {
  font-size: 16px;
}

/* Label row with an inline action link on the right (e.g. "forgot pin?"
   beside "YOUR 4-DIGIT PIN:" on Step 2b). Vertically aligned at baseline so
   the link sits on the same line as the label. */
.std_label_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 6px 8px 6px;
}
.std_label_row .std_label {
  margin: 0;
}
.std_label_link {
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--accent_orange);
  text-decoration: none;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
}
.std_label_link:hover {
  text-decoration: underline;
}

/* Username input with inline availability indicator (signup Step 1). The
   icon sits absolutely on the right of the input; only renders when the
   availability state is known. */
.username_input_wrap {
  position: relative;
}
.username_input_wrap .input_text_lg {
  padding-right: 44px;
}
.username_status_icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  pointer-events: none;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  display: none;
}
.username_status_icon.available {
  display: block;
  background-color: var(--accent_green);
  -webkit-mask-image: url('/assets/icons/icon_circle_check.svg');
          mask-image: url('/assets/icons/icon_circle_check.svg');
}
.username_status_icon.unavailable {
  display: block;
  background-color: var(--accent_red);
  -webkit-mask-image: url('/assets/icons/icon_close_x.svg');
          mask-image: url('/assets/icons/icon_close_x.svg');
}

/* Two-button CTA row used in the home feed_card hero (signed-in + signed-out
   states). On mobile the row fills the parent's inner width; on desktop it
   caps at 500px and centers. Both buttons get equal width via flex:1. */
.home_cta_buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.home_cta_buttons .btn {
  flex: 1;
  min-width: 0;
}

.inline_count_pill {
  display: inline-block;
  margin-top: 10px;
  padding: 0 15px;
  color: #FFF !important;
  /* Override the gradient-text trick (-webkit-text-fill-color: transparent)
     inherited from parents like .styling_text_white / .styling_text_orange. */
  -webkit-text-fill-color: #FFF;
  border-radius: 30px;
}

/* ---- Search phase layout (song + movie enrollment) ----
   Replaces the standard .dialog_body for the search phase only:
   intro + input pinned at the top, results scroll below, scroll area
   extends nearly to the bottom of the card for max result visibility. */
.phase_search_layout {
  position: absolute;
  top: 70px;
  left: 25px;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search_phase_intro {
  flex: 0 0 auto;
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}
.phase_search_layout .input_text_lg {
  flex: 0 0 auto;
}
.search_phase_results_scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}

.signup_slide .inline_count_pill {
  padding: 0 12px;
  font-size: 2rem;
  margin: 5px 0 0 12px;
}

.callout_pill, .inline_callout {
  padding: 0 10px;
  font-family: "Open Sans", sans-serif;
  color: #FFF !important;
  border-radius: 50px;
  text-transform:uppercase;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 600;
  cursor: pointer;
}

.inline_callout {
  padding: 0 4px;
  font-size: 0.6em;
}

.input_text, .input_text_lg,
select.input_text, select.input_text_lg,
.prompt_textarea {
  background: var(--bg_clr);
  padding: 10px 14px;
  font-size: 16px; /* minimum 16px prevents iOS auto-zoom on focus */
  /* font-family: "Noto Serif", serif; */
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: var(--text_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.input_text_lg {
  padding: 12px 18px;
  font-size: 20px;
}

.input_text:focus,
.input_text_lg:focus {
  outline: none;
  border-color: var(--accent_blue);
}

/* Capitalize text inputs */
.input_text,
.input_text_lg {
  text-transform: capitalize;
}


/* Header row that contains the action buttons (floated right), the title
   (block, holds natural height), and an absolute-positioned search input
   layered over the title. Toggle .searching on this container to swap
   between title and input view — desktop and mobile both pick this up. */
.utility_head {
  position: relative;
  /* flow-root clears the float without overflow:hidden clipping our
     absolutely-positioned input (which is a few px taller than the h1). */
  display: flow-root;
}

/* Wrapper takes the overlay positioning so the input + clear-X live
   together as a unit. Input becomes relative inside it. */
.utility_search_wrap {
  position: absolute;
  top: -6px;
  left: 4px;
  right: 95px;
  display: none;
}
.utility_head.searching .utility_search_wrap { display: block; }
.utility_head.searching .display_text_utility { visibility: hidden; }

.utility_search {
  position: relative;
  width: 100%;
  padding-right: 40px;     /* room for the clear X */
  text-transform: none;
}

/* Clear X — appears only when the input has text. */
.utility_search_clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.utility_search_wrap.has_text .utility_search_clear { display: flex; }
.utility_search_clear .icon_svg {
  width: 18px;
  height: 18px;
  background-color: var(--nutural_clr);
}
.utility_search_clear:hover .icon_svg { background-color: var(--accent_orange); }

.prompt_textarea {
  height: 68px;
  width: 98%;
  margin: auto;
  resize:vertical;
  text-align:center;
  border:none;
  font-size: 16px;
  display: block;
}

.prompt_textarea::placeholder {
  font-size: 16px;
  color: #999;
}

/* Static prompt display (challenge overlay) — same box, no input */
div.prompt_textarea {
  display: flex;
  align-items: center;
  justify-content: center;
  resize: none;
  user-select: none;
}

/* PIN digit boxes */
.pin_group {
  display: flex;
  gap: 10px;
}

.pin_digit {
  width: 52px;
  height: 64px;
  background: var(--bg_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 10px;
  color: var(--text_clr);
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  caret-color: var(--accent_blue);
  transition: border-color 200ms ease;
}

.pin_digit:focus {
  outline: none;
  border-color: var(--accent_blue);
}

.pin_digit.filled {
  border-color: var(--accent_green);
}

.input_container_style {
  background: var(--bg_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 10px;
    padding: 18px 10px 10px 10px;
}

.input_container_style .pin_digit {
    background: var(--card_clr);
}

.centered_pin {
  /* Content-sized + auto margins so the PIN row is bulletproof-centered
     regardless of parent width, scrollbar gutter, or flex sizing quirks. */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}

.pin_change_note {
  font-size: 13px;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pin_change_status {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
  opacity: 0.7;
}

.pin_change_status.status_success {
  color: var(--accent_green);
  opacity: 1;
}

.pin_change_status.status_error {
  color: var(--accent_red);
  opacity: 1;
}

.pin_match_ok {
  color: var(--accent_green);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.pin_match_ok.visible { opacity: 1; }

.pin_match_err {
  color: var(--accent_red);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.pin_match_err.visible { opacity: 1; }

/* Form status message — always reserves space, no layout jump */
.form_status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  min-height: 38px;
  color: transparent;
}

.form_status.error {
  background: rgba(255, 0, 66, 0.15);
  border: 1px solid var(--accent_red);
  color: var(--accent_red);
}

.form_status.success {
  background: rgba(153, 204, 0, 0.15);
  border: 1px solid var(--accent_green);
  color: var(--accent_green);
}

/* Review overlay */
.review_overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 60px 20px 40px;
}

.review_overlay.active {
  display: flex;
}

.review_card {
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 520px;
  position: relative;
}

.review_close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 2px solid var(--nutural_clr);
  background: var(--nutural_clr);
  border-radius: 50px;
  cursor: pointer;
  z-index: 1;
}

.review_close .icon_svg {
  background-color: var(--trim_clr);
  width: 45px;
  height: 45px;
}

.review_close:hover {
  border-color: var(--bg_plank);
  background: var(--bg_plank);
}

.review_close:hover .icon_svg {
  background-color: var(--accent_orange);
}

.review_row {
  padding: 10px 0;
  border-bottom: 1px solid var(--trim_clr);
}

.review_row:last-of-type {
  border-bottom: none;
}

.review_label {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nutural_clr);
  margin-bottom: 2px;
}

.review_value {
  font-size: 18px;
  color: var(--text_clr);
  text-transform: capitalize;
}

.review_value.masked {
  letter-spacing: 6px;
}

.review_actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

body.review_open {
  overflow: hidden;
}

/* Custom-styled selects — strip browser chrome */
select.input_text,
select.input_text_lg {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}

select.input_text_lg {
  background-position: right 18px center;
  padding-right: 44px;
}

select.input_text:focus,
select.input_text_lg:focus {
  outline: none;
  border-color: var(--accent_blue);
}

/* Style disabled/placeholder option */
select.input_text option,
select.input_text_lg option {
  background: var(--card_clr);
  color: var(--text_clr);
  padding: 8px;
}

select.input_text option:disabled,
select.input_text_lg option:disabled {
  color: var(--nutural_clr);
}

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

.post_input_cont, .card_user_info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.profile_post_input {
  flex: 1;
  font-size: 18px;
}


/* ---- User Avatar ---- */
.user_avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--accent_blue);
  background-position: center;
  background-size: cover;
  flex-shrink: 0;
}

.card_user_info .user_avatar {
  width: 26px;
  height: 26px;
}

.card_user_info {
  color: var(--accent_blue);
  font-size: 18px;
  margin: 4px 0 8px 0;
  font-weight: 700;
  font-variation-settings: "wdth" 700;
  gap: 10px;
}


/* ---- Buttons ---- */

.tabs_cont {
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-sizing: border-box;
  background-color: rgba(0,0,0,.2);
  cursor: pointer;
  margin: auto;
  border: 1px solid var(--bg_clr);
  border-top: 1px solid #2b323e;
}

.tabs_cont .tab {
  padding: 8px 2px 0px 2px;
  width: 20%;
  float: left;
  border: none;
  border-right: 1px solid rgba(255,255,255,.1);
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

.lower_tab_card, .inset_cont {
  margin: auto;
  max-width: 550px;
  /* border: 2px solid var(--card_clr_lit); */
  padding: 15px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
/*  background-color: rgba(15, 17, 22, 0.5);*/
  background: rgba(0,0,0,0.08);
  border: 1px solid var(--trim_clr);
  -webkit-box-shadow: inset 0px 3px 10px 0px rgba(0,0,0,0.4); 
  box-shadow: inset 0px 3px 10px 0px rgba(0,0,0,0.4);
  border-top: none;
  
}

.inset_cont {
    border-radius: 10px;
    position: relative;
    padding: 20px 0;
    
    height: calc(100vh - 260px);
}

.tab_svg {
  background-color: #a0b2e1;
  width: 24px;
  height: 24px;
  opacity: 0.35;
}

.styling_orange .tab_svg, .tabs_cont .tab:hover .tab_svg {
  opacity: 1;
  background-color: #fff;
}

.tabs_cont .tab:hover {
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_orange) 75%, black 30%) 100%);
}

.tabs_cont .tab:last-child {
  border: none;
}

.btn {
  color: #fff;
  border-radius: 5px;
  font-size: 13px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  padding: 6px 15px;
  min-width: 120px;
  font-weight: 600;
  font-variation-settings: "wdth" 600;
  cursor: pointer;
  text-decoration: none;
}
a.btn, a.btn:visited, a.btn:hover, a.btn:active {
  color: #fff;
  text-decoration: none;
}

.btn_lg {
  font-size: 16px;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  font-variation-settings: "wdth" 700;
    min-width: 130px;
}

.btn_sm {
    color: #fff;
  font-size: 13px;
  border-radius: 10px;
  padding: 4px 11px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    cursor: pointer;
}

.btn_100 {
  width: 100%;
}

.btn_500 {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.styling_red {
  border: 2px solid var(--accent_red);
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_red) 75%, black 30%) 100%);
}

.styling_orange {
  border: 2px solid var(--accent_orange);
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_orange) 75%, black 30%) 100%);
}

.styling_blue, .vault_btn:hover {
  border: 2px solid var(--accent_blue);
  background: linear-gradient(to bottom, var(--accent_blue) 0%, color-mix(in srgb, var(--accent_blue) 75%, black 30%) 100%);
}

.styling_green {
  border: 2px solid var(--accent_green);
  background: linear-gradient(to bottom, var(--accent_green) 0%, color-mix(in srgb, var(--accent_green) 75%, black 30%) 100%);
}

.styling_dark {
  border: 2px solid #000;
  background: linear-gradient(to bottom, #333 0%, color-mix(in srgb, #333 75%, black 30%) 100%);
}

.styling_black {
  border: 2px solid #000;
  background: linear-gradient(to bottom, #191c23 0%, #0a0c10 100%);
}

.styling_light {
  text-shadow: none;
  color: #222;
  border: 2px solid #FFF;
  background: linear-gradient(to bottom, #FFF 0%, color-mix(in srgb, #FFF 75%, black 30%) 100%);
}

.styling_nutural {
  text-shadow: none;
  color: var(--text_clr);
  border: 2px solid var(--nutural_clr);
  background: linear-gradient(to bottom, var(--nutural_clr) 0%, color-mix(in srgb, var(--nutural_clr) 75%, black 30%) 100%);
}

.styling_gray {
  text-shadow: none;
  color: var(--card_clr_lit2);
  border: 2px solid var(--card_clr_lit2);
  background: linear-gradient(to bottom, var(--card_clr_lit2) 0%, color-mix(in srgb, var(--card_clr_lit2) 75%, black 30%) 100%);
}

.styling_theme {
  text-shadow: none;
  color: var(--text_clr);
  border: 2px solid var(--bg_plank);
  background: linear-gradient(to bottom, var(--bg_clr) 0%, color-mix(in srgb, var(--bg_clr) 75%, black 30%) 100%);
}

.vault_btn {
    float:right; margin:0 0 0 12px; padding:4px;
}

.vault_btn:first-child {
    margin-right: -8px;
}

.vault_btn .icon_svg {
    width:20px; height:20px; background:#fff;
}


/* ---- Toggle Switches ---- */
.toggle_bg, .toggle_bg_sm {
  display: inline-block;
  width: 64px;
  height: 32px;
  border-radius: 100px;
  background: var(--card_clr_lite);
  outline: 5px solid rgba(255,255,255,0.05);
  border: 2px solid #000;
  position: relative;
  z-index: 0;
  overflow: visible;
  cursor: pointer;
  transition: background 200ms ease;
}

.toggle_btn, .toggle_btn_sm {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: var(--card_clr);
  outline: 2px solid rgba(0,0,0,1);
  z-index: 10;
  pointer-events: none;
  transition: transform 200ms ease;
  -webkit-box-shadow: 0px 1px 0px 6px rgba(0,0,0,0.15);
  box-shadow: 0px 1px 0px 6px rgba(0,0,0,0.15);
}

.toggle_bg_sm {
  width: 44px;
  height: 22px;
}

.toggle_btn_sm {
  background: linear-gradient(45deg, #444 0%, #000 100%);
  outline: 2px solid #252525;
  width: 19px;
  height: 19px;
}

.channel_green .toggle_btn,
.channel_orange .toggle_btn,
.channel_red .toggle_btn,
.channel_blue .toggle_btn {
  transform: translateX(31px);
}

/* Small variant — bg 44px wide, btn 19px wide, slides ~22px to the right edge. */
.channel_green .toggle_btn_sm,
.channel_orange .toggle_btn_sm,
.channel_red .toggle_btn_sm,
.channel_blue .toggle_btn_sm {
  transform: translateX(22px);
}

.channel_shadow {
  -webkit-box-shadow: inset 1px 3px 1px 2px rgba(0,0,0,0.35) !important;
  box-shadow: inset 1px 3px 1px 2px rgba(0,0,0,0.35) !important;
}

.channel_blue {
  background: linear-gradient(to top, var(--accent_blue) 0%, color-mix(in srgb, var(--accent_blue) 75%, black 50%) 100%) !important;
}

.channel_green {
  background: linear-gradient(to top, var(--accent_green) 0%, color-mix(in srgb, var(--accent_green) 75%, black 50%) 100%) !important;
}

.channel_red {
  background: linear-gradient(to top, var(--accent_red) 0%, color-mix(in srgb, var(--accent_red) 75%, black 50%) 100%) !important;
}

.channel_orange {
  background: linear-gradient(to top, var(--accent_orange) 0%, color-mix(in srgb, var(--accent_orange) 75%, black 50%) 100%) !important;
}


/* ---- Remember Device Container ---- */
.remember_device_container, .inset_btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 22px 14px 38px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  border-radius: 100px;
  justify-content: center;
  -webkit-box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5); 
  box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
}

.remember_device_label, .signin_toggle_label {
  /* Label renders first (left); margin-right:auto pushes toggle to the right edge,
     overriding the parent's justify-content:center per the flex spec. */
  order: -1;
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  line-height: 1;
  text-transform: uppercase;
}

.inset_btn {
    font-family:;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
    font-size: .9em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px;
}

.inset_btn:hover {
    color: var(--accent_orange);
    border-color: var(--accent_orange);
}

/* Sign-in lockout — the heading itself becomes the lockout indicator.
   JS swaps the .header_label text to "Locked - Try again in M:SS" and adds
   .locked to the h2 so color + lock-icon swap from orange to red. Reverts
   automatically when the timer expires. */
.bl_overlay_header h2 .svg_inline_heading.svg_lock {
  background-color: var(--accent_orange);
}
.bl_overlay_header h2.locked,
.bl_overlay_header h2.locked.accent_orange {
  color: var(--accent_red);
}
.bl_overlay_header h2.locked .svg_inline_heading.svg_lock {
  background-color: var(--accent_red);
}

/* ---- Sign-in toggle group ----
   Single pill-style container that holds the "Remember this device" and
   "Enable biometrics" toggles. Each row aligns its toggle on the left so
   the two toggle thumbs are vertically aligned across rows. */
.signin_toggle_group {
  margin: 20px auto 0 auto;
    max-width: 440px;
  padding: 14px 22px 14px 38px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
  box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
}

/* Same visual treatment as .signin_toggle_group but with symmetric padding,
   used to wrap username + PIN/answer inputs in the sign-in overlay so they
   sit in a matching styled container above the toggle group. */
.signin_input_group {
  margin: 0 auto;
  max-width: 440px;
  padding: 18px 22px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  border-radius: 24px;
  -webkit-box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
  box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
}
.signin_input_group .std_label:first-child { margin-top: 0; }

.side_menu.access_items_2 {
  margin: 0 -5px;
  border-radius: 10px;
  padding: 0 5px 10px 5px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  -webkit-box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5); 
  box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
}

.signin_toggle_row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- Choose-a-BrainLock picker ----
   Vertical stack of row buttons (icon left, label right) shown when the user
   taps "+ NEW BRAINLOCK" or "+ADD" — see includes/chooselock_overlay.php. */
.chooselock_options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.chooselock_btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--bg_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 14px;
  color: var(--text_clr);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 200ms ease, border-color 200ms ease, transform 100ms ease;
}

.chooselock_btn:hover {
  background: var(--card_clr);
  border-color: var(--accent_orange);
}

.chooselock_btn:active {
  transform: scale(0.98);
}
/* Locked state — applied to image/song/movie buttons until the user has
   the required 3 geo BrainLocks. Greyed and unclickable. */
.chooselock_btn_locked {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.chooselock_icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: var(--accent_orange);
}

.chooselock_label {
  flex: 1;
}


/* ---- Card Labels ---- */
.card_label_cont {
  display: inline-block;
  margin: 0 0 8px -5px !important;
  border-radius: 6px !important;
  background: var(--bg_clr);
  border: 1px solid var(--trim_clr);
  border-width: 1px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 600;
  font-variation-settings: "wdth" 600;
}

.card_label_callout {
  display: inline-block;
  margin: 0 0 8px -5px !important;
  background-color: var(--bg_clr);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px !important;
  font-weight: 700;
  font-variation-settings: "wdth" 700;
  cursor: pointer;
}


/* ---- H2 Icon alignment ---- */
.h2_svg {
  background-color: var(--text_clr);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

/* Active headings and icons */
.feed_ice h2 { color: var(--ice_clr); }
.feed_ice .svg_ice { background-color: var(--ice_clr); }
.feed_police h2 { color: var(--police_clr); }
.feed_police .svg_police { background-color: var(--police_clr); }


/* ---- Blurred surfaces ---- */
.blurred {
  background-color: var(--dim);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* ---- Top Menu ---- */
.top_menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  text-align: center;
  /* display: grid; */
  /* grid-template-columns: 25% 1fr 25%; */
  height: 80px;
  border-bottom: 1px solid var(--trim_clr);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.top_menu_logo {
  margin: auto;
  width: 100%;
  max-width: 400px;
  display: inline-block;
}

/* Auth status badge */
.auth_badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--trim_clr);
  opacity: 0.3;
  transition: all 0.4s ease;
}
.auth_badge.pin_access {
  background: var(--accent_yellow);
  opacity: 1;
  box-shadow: 0 0 6px var(--accent_yellow);
}
.auth_badge.verified {
  background: var(--accent_green);
  opacity: 1;
  box-shadow: 0 0 6px var(--accent_green), 0 0 12px rgba(0,255,100,0.3);
}
.auth_badge.max_access {
  background: var(--accent_blue);
  opacity: 1;
  box-shadow: 0 0 6px var(--accent_blue), 0 0 12px rgba(0,122,255,0.3);
}

.top_menu_col { text-align: center; }

.top_menu_tabs_container {
  width: 80%;
  max-width: 340px;
  margin: 25px auto 0 auto;
  overflow: hidden;
  border-radius: 100px;
  border-top: 1px solid var(--top_bev_clr);
  border-bottom: 1px solid var(--bottom_bev_clr);
  background: var(--glass_bg);
}

.top_menu_icon_container, .top_menu_secure_icon_cont {
  display: none; /* Hidden by default — shown when right_col is hidden */
  background-color: var(--glass_bg);
  border: 1px solid var(--bottom_bev_clr);
  width: auto;
  top: 22px;
  right: 18px;
  position: absolute;
  padding: 6px;
  border-radius: 100px;
  cursor: pointer;
  display: block;
    opacity: 0.65;
}

.top_menu_secure_icon_cont {
  right:auto;
  left: 18px;
}

.top_menu_tab_item {
  border: none;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 700;
  color: var(--nutural_clr);
  width: 33.3%;
  text-align: center;
  float: left;
  padding: 6px 2px;
  cursor: pointer;
  border-right: 1px solid var(--top_bev_clr);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top_menu_tab_item:last-child {
  border-right: none;
  width: 33.4%;
}

.top_menu_secure_icon_cont:hover,
.top_menu_secure_icon_cont.selected,
.top_menu_tab_item:hover,
.top_menu_tab_item.selected,
.top_menu_icon_container:hover,
.top_menu_icon_container.selected {
    opacity: 1;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  background: linear-gradient(to bottom, var(--accent_orange) 0%, color-mix(in srgb, var(--accent_orange) 75%, black 30%) 100%);
}

.top_menu_secure_icon_cont:hover .icon_secure_main_menu,
.top_menu_secure_icon_cont.selected .icon_secure_main_menu,
.top_menu_icon_container:hover .icon_main_menu,
.top_menu_icon_container.selected .icon_main_menu {
  background-color: #fff;
}


/* ---- Burger Menu ---- */
.burger_menu_logo {
  width: 100%;
  max-width: 160px;
  margin: 10px 0 0 20px;
}

.blackout {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.7);
  z-index: 25;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0ms linear 140ms;
}

.burger_menu, .burger_menu_secure {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  border: 1px solid var(--trim_clr);
  width: 280px;
  z-index: 30;
  border-top-left-radius: 20px;
/*  border-bottom-left-radius: 20px;*/
  box-shadow: -6px 0px 14px 0px rgba(0,0,0,0.65),
    inset 0px 10px 12px 3px rgba(0,0,0,0.22);
  -webkit-box-shadow: inset 0px 10px 12px 3px rgba(0,0,0,0.22);
  transform: translateX(110%);
  visibility: hidden;
  transition: transform 240ms ease, visibility 0ms linear 240ms;
  will-change: transform;
}

.burger_menu_secure {
    width:280px;
    right: auto;
    left: 0;
    border-radius: 0;
    border-top-right-radius: 20px;
    transform: translateX(-110%);
    box-shadow: 6px 0px 14px 0px rgba(0,0,0,0.65),
    inset 0px 10px 12px 3px rgba(0,0,0,0.22);
  -webkit-box-shadow: inset 0px 10px 12px 3px rgba(0,0,0,0.22);
}

.burger_menu_scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 55px;
  bottom: 5px;
  padding: 0 20px;
  overflow: auto;
}

.burger_menu_secure .burger_menu_scroll {
    top:68px;
}

.burger_menu_scroll::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 2px;
  margin-bottom: 8px;
  background: linear-gradient(to right, transparent, var(--trim_clr), transparent);
  pointer-events: none;
}

body.menu_open, body.menu_open_secure { overflow: hidden; }

body.menu_open .blackout, body.menu_open_secure .blackout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms ease, visibility 0ms linear 0ms;
}

body.menu_open .burger_menu,
body.menu_open_secure .burger_menu_secure {
  transform: translateX(0);
  visibility: visible;
  transition: transform 240ms ease, visibility 0ms linear 0ms;
}

.burger_close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--nutural_clr);
  background: var(--nutural_clr);
  border-radius: 50px;
  z-index: 31;
  cursor: pointer;
}

.burger_secure_close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--nutural_clr);
  background: var(--nutural_clr);
  border-radius: 50px;
  z-index: 31;
  cursor: pointer;
}

.burger_close .icon_svg,
.burger_secure_close .icon_svg {
  background-color: var(--bg_clr);
  width: 30px;
  height: 30px;
}

.burger_close:hover,
.burger_secure_close:hover {
  border-color: var(--bg_plank);
  background: var(--bg_plank);
}

.burger_close:hover .icon_svg,
.burger_secure_close:hover .icon_svg { background-color: var(--accent_orange); }

.card_close, .card_plus {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 2px solid var(--bg_clr);
  background: var(--card_clr);
  border-radius: 50px;
  z-index: 31;
  cursor: pointer;
}

.add_btn {
  border: 2px solid var(--bg_clr);
  background: var(--card_clr);
  border-radius: 50px;
  z-index: 31;
  cursor: pointer;
}

.add_btn:hover {
  border-color: #fff;
}

.add_btn .icon_svg { 
    background-color: var(--accent_blue);
    width: 32px;
  height: 32px;
}

.card_close .icon_svg, .card_plus .icon_svg  {
  background-color: var(--nutural_clr);
  width: 32px;
  height: 32px;
}

.card_close:hover, .card_plus:hover  {
  border-color: var(--bg_plank);
  background: var(--bg_plank);
}

.card_close:hover .icon_svg { background-color: var(--accent_orange); }
.card_plus:hover .icon_svg { background-color: var(--accent_blue); }


/* ---- Side Menu ---- */
.side_menu {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 600;
}

.side_menu .is_blog {
  font-size: 18px;
}

.side_menu.access_items {
  border-radius: 10px;
  padding-bottom: 10px;
  background: var(--bg_clr);
}

.side_menu_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.3em;
  position: relative;
}

.side_menu_item.access_item {
  font-size: .7em;
  padding: 5px 10px;
  line-height: 1em;
}

.auth_level_countdown {
  margin-left: auto;
  font-size: 0.95em;
  font-variant-numeric: tabular-nums;
  opacity: 0.4;
  display: none;
}
.auth_level_countdown.active { display: inline; }

/* Hovering an access_item row tints the label + countdown to that tier's color. */
.access_item[data-auth-level="1"]:hover .side_menu_label,
.access_item[data-auth-level="1"]:hover .auth_level_countdown {
  color: var(--accent_yellow);
}
.access_item[data-auth-level="2"]:hover .side_menu_label,
.access_item[data-auth-level="2"]:hover .auth_level_countdown {
  color: var(--accent_green);
}
.access_item[data-auth-level="3"]:hover .side_menu_label,
.access_item[data-auth-level="3"]:hover .auth_level_countdown {
  color: var(--accent_blue);
}

.side_menu_item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.side_menu_item:hover, .side_menu_item.selected 
{ background: var(--bg_clr); }
.side_menu_item:hover .side_menu_label, .side_menu_item.selected .side_menu_label
{ color: var(--bg_plank_inv); }
.side_menu_item:last-child { border: none; }

.side_menu_divider {
  padding: 10px 0 5px 10px;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "wdth" 600;
  text-transform: uppercase;
  color: var(--nutural_clr);
}

.side_menu_item,
.side_menu_item:visited,
.side_menu_item:hover,
.side_menu_item:active,
.side_menu_item:focus,
.side_menu_item > a,
.side_menu_item > a:visited,
.side_menu_item > a:hover,
.side_menu_item > a:active,
.side_menu_item > a:focus {
  text-decoration: none;
  color: inherit;
}

.side_menu_icon {
  width: 22px;
  height: 22px;
  background-color: var(--accent_orange);
  flex: 0 0 22px;
}

/* Items with a category description underneath the title */
.side_menu_item.with_subtitle {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}
.side_menu_item.with_subtitle .side_menu_icon {
  margin-top: 3px;
}
.side_menu_label_group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.side_menu_sub {
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.25;
  color: var(--nutural_clr);
}
.side_menu_item.with_subtitle:hover .side_menu_sub,
.side_menu_item.with_subtitle.selected .side_menu_sub {
}

/* ---- Secure panel (Vault / Wallet tabs + panes) ----
   Used in the left burger drawer AND on desktop in the left column
   on vault subpages. Layout overrides per context appear below. */
.menu_tabs_cont {
  display: flex;
  overflow: hidden;
}
.menu_tab {
  flex: 1 1 0;
  font-family: "Oswald", sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #555;
  padding: 8px;
  text-align: center;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  box-shadow: inset 0px 3px 12px 0px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.menu_tab:hover {
  color: #bbb;
  border-color: color-mix(in srgb, var(--trim_clr) 60%, var(--accent_orange) 40%);
}
.menu_tab.selected {
  box-shadow: none;
  color: #fff;
  border: 1px solid var(--accent_orange);
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_orange) 75%, black 30%) 100%);
}
.menu_tab:first-child { border-top-left-radius: 10px; }
.menu_tab:last-child  { border-top-right-radius: 10px; }

/* Wallet pane (placeholder until splash launches) */
.wallet_pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 20px;
  box-sizing: border-box;
}
.wallet_pane_logo {
  width: 100px;
  height: auto;
  margin-bottom: 14px;
  opacity: 0.9;
}
.wallet_pane_title {
  font-family: "Oswald", sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent_orange);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.wallet_pane_subtitle {
  font-size: 0.8em;
  color: #888;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Drawer context: panel fills the slide-in card; tabs at top, body scrolls. */
.burger_menu_secure .secure_panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.burger_menu_secure .menu_tabs_cont {
  flex: 0 0 auto;
  margin: 16px 8px 0 12px;
}
.burger_menu_secure .secure_panel_body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 20px 5px;
}

/* Column context: card opts out of its own padding so tabs span the rounded
   top edge; body provides its own padding for the menu items. The flex
   column chain (card → panel → body) gives each level a definite height so
   the wallet pane's min-height:100% has something to resolve against — that
   makes its vertical centering work in the column the same way it does in
   the drawer. */
.feed_left_card.secure_card_wrap {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feed_left_card.secure_card_wrap .secure_panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.feed_left_card.secure_card_wrap .secure_panel_body {
  flex: 1 1 auto;
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
}
.feed_left_card.secure_card_wrap .secure_pane {
  flex: 1 1 auto;
}

.side_menu_news_item {
  background: var(--bg_clr);
  border-radius: 20px;
  margin: 0 -10px;
  padding: 10px;
  color: var(--accent_blue);
  font-size: 12px;
  font-weight: 400;
  font-variation-settings: "wdth" 400;
  gap: 10px;
}

.side_menu_news_img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--card_clr);
  margin-right: 6px;
}


/* ---- Select / Context Menu ---- */
.select_sort {
  width: 26px;
  height: 26px;
  margin-left: auto;
  background-color: var(--trim_clr);
}

.select_btn_cont {
  position: absolute;
  top: -10px;
  left: -8px;
  border-radius: 15px;
  border: 2px solid var(--bottom_bev_clr);
  background: var(--bg_clr);
  padding: 5px;
  z-index: 15;
  max-width: 70%;
  min-width: 340px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.5);
}

.select_item {
  border-bottom: 0.5px solid var(--bottom_bev_clr);
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.select_icon {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background-color: var(--accent_orange);
}

.select_item:hover {
  background-color: var(--accent_orange);
  color: var(--text_clr);
}

.select_item:hover .select_icon {
  background-color: var(--text_clr);
}

.mem_count {
  margin-left: auto;
  opacity: 0.5;
}

.select_btn {
  position: relative;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
  background-color: var(--bg_clr);
  display: inline-flex;
  align-items: center;
}


/* ---- Badge ---- */
.new_msg_badge {
  margin-left: auto;
  font-size: 14px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.75);
  padding: 0 9px;
  border-radius: 30px;
  font-weight: 800;
  font-style: normal;
  font-variation-settings: "wdth" 800;
  color: #fff;
  line-height: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}


/* ---- Feed / Cards ---- */
.feed_inner_cont, .self_prompt_input {
  width: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background-color: var(--bg_clr);
  min-height: 84px;
  border-radius: 10px;
  border: none;
  border-top: 1px solid var(--bg_plank);
  border-bottom: 1px solid var(--bottom_bev_clr);
  padding: 20px;
}

.self_prompt_input {
  font-size: 18px;
  color: var(--text_clr);
}

.feed_activity_header {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.feed_activity_left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feed_activity_header h2,
.feed_activity_header h3 {
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed_activity_header h2 {
  line-height: 1.1;
}

.feed_activity_header .time_ago {
  font-size: 1.6rem;
  white-space: nowrap;
}

.activity_time_ago {
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--bg_clr);
}

.feed_left_card p {
  font-size:13px; opacity:0.5;
}

.feed_left_card p.p_hightlight {
  font-size:14px; opacity:0.8; line-height:1.6;
  margin-bottom:12px;
}

.feed_card, .feed_left_card, .feed_right_card {
  border-radius: 20px;
  border: 1px solid var(--card_clr_lit);
  padding: 20px 25px;
  margin: auto;
  margin-bottom: 24px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.05);
  min-height: 40px;
  position: relative;
  overflow: auto;
}

.is_utility_page .feed_card, .is_utility_page .feed_left_card, .is_utility_page .feed_right_card {
    height: calc(100vh - 150px);
    margin-bottom: 0;
}

.feed_card { 
  padding: 40px;
  max-width: 620px; 
}

.feed_card_margin {
    padding: 50px 40px !important;
}

.feed_card_margin30 {
    padding: 30px !important;
}


/* ---- Context Dim Overlay ---- */
.ctx_dim {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0ms linear 140ms;
}

.ctx_dim.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms ease, visibility 0ms linear 0ms;
}


/* ---- Layout Grid ---- */
.container {
  display: grid;
  grid-template-columns: minmax(250px, 23%) 1fr minmax(250px, 23%);
  width: 100%;
  max-width: 1300px;
  margin: auto;
}

.col {
  padding: 10px;
  text-align: left;
  min-height: 100px;
  min-width: 0;
  overflow: hidden;
}

.left_col,
.right_col {
  align-self: start;
}


/* ---- Footer ---- */
footer {
  font-family: "Geist Mono", monospace;
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
}


/* ---- Blog ---- */

.page_content {
    margin: auto;
    max-width: 550px;
}

.blog_img {
  width:100%; 
  max-width:200px; 
  display:inline-block; 
  margin:20px auto
}
.blog_meta {
  font-family: "Geist Mono", monospace;
  margin: 20px;
  font-size: 15px;
  /* opacity: 0.5; */
  letter-spacing: 0.5px;
}

.blog_meta .blog_author { font-weight: 600; }
.blog_meta .blog_author::after {
  content: "\00b7";
  margin: 0 8px;
}

.blog_callout {
  font-family: "Geist Mono", monospace;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--accent_orange);
  text-align: center;
  margin: 32px 0;
  opacity: 1 !important;
  margin: auto;
}

.blog_closing, .note_callout {
  font-family: "Geist Mono", monospace;
  font-size: 17px !important;
  font-weight: 600;
  opacity: 1 !important;
  text-align: center;
  background-color: var(--bg_clr);
  margin: 20px -20px;
  padding: 20px;
  border-radius: 20px;
}

.note_callout {
  max-width: 550px;
  margin: 30px auto;
}

.blog_footer {
  text-align: center;
  font-size: 13px !important;
  text-transform: uppercase;
}
.blog_footer a {
  color: var(--accent_blue);
  text-decoration: none;
}

/* ---- Card Inner (narrower content container inside cards) ---- */
.card_inner {
  max-width: 440px;
  margin: 0 auto;
}

/* ---- Panel Title (orange uppercase heading inside cards) ---- */
.panel_title, .panel_title2 {
  font-family: "Oswald", sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--card_clr_lit2);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.panel_title2 {
    font-size: 1.1em;
    margin: 35px 0 20px 15px;
    opacity: 0.6;
}

.panel_title_svg {
  width: 32px;
  height: 32px;
  background-color: var(--card_clr_lit2);
  margin: 0 4px -10px 0;
}

.panel_sub_link {
    cursor: pointer;
}
/* ---- Info Row (key-value display) ---- */
.info_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--card_clr);
}
.info_row:last-child { border-bottom: none; }

.info_label {
  font-size: 14px;
  opacity: 0.5;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
}

.info_value {
  font-size: 16px;
  font-weight: 600;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.info_value_pill {
  font-size: 22px;
  background: var(--bg_clr);
  padding: 1px 12px;
  border-radius: 50px;
}

/* ---- Edit Button (circle icon button) ---- */
.edit_btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg_clr);
  border: 1px solid var(--trim_clr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.edit_btn:hover { background: var(--card_clr_lit); }
.edit_btn .icon_svg {
  width: 18px;
  height: 18px;
  background: var(--nutural_clr);
}

/* ---- Status Pill ---- */
.status_pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status_pill.active { background: rgba(153,204,0,0.15); color: var(--accent_green); }
.status_pill.enrollment { background: rgba(255,102,0,0.15); color: var(--accent_orange); }
.status_pill.locked { background: rgba(255,0,66,0.15); color: var(--accent_red); }

/* ---- Lightbox (reusable fullscreen image viewer) ---- */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox_img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox_close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox_close:hover { background: rgba(255,255,255,0.3); }
.lightbox_close::before,
.lightbox_close::after {
  content: "";
  position: absolute;
  width: 18px; height: 2px;
  background: #fff;
}
.lightbox_close::before { transform: rotate(45deg); }
.lightbox_close::after { transform: rotate(-45deg); }


/* ---- Map Container ---- */
.map_cont {
  position: relative;
  height: 62vh;
  transition: all 300ms ease;
}

.map_fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  z-index: 9999;
  border-radius: 0 !important;
  margin: 0;
}

.map_fullscreen #brainlock_map {
  border-radius: 0 !important;
}

.map_btn_cont {
  position: absolute;
  right: 0px;
  top: 0;
}

.map_btn {
  padding: 6px;
  margin: 10px;
  border-radius: 6px;
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  box-shadow: 0px 0px 5px rgba(0,0,0,0.45);
  cursor: pointer;
}

.map_svg {
  background-color: var(--link_clr);
  width: 28px;
  height: 28px;
}

.map_btn:hover {
  background: var(--accent_blue);
  border: 1px solid var(--accent_blue);
}

.map_btn:hover .map_svg {
  background: var(--text_clr);
}

/* Map distance pills */
.map_dist_pill {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  min-width: 72px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
  line-height: 18px;
}

.map_dist_x {
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.map_dist_y {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Map crosshairs */
.map_crosshair {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.map_crosshair::before,
.map_crosshair::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.35);
}

.map_crosshair::before {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
}

.map_crosshair::after {
  left: 0; right: 0;
  top: 50%;
  height: 1px;
}

/* Challenge success overlay */
.map_success_overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 20;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15%;
}

.map_success_overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.map_success_lottie {
  width: 140px;
  height: 140px;
}

.map_success_text {
  text-align: center;
  color: #fff;
  margin-top: 12px;
}

.map_success_text h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 0.6s, transform 400ms ease 0.6s;
}

.map_success_overlay.active .map_success_text h2 {
  opacity: 1;
  transform: translateY(0);
}

.map_success_text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 24px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease 0.9s, transform 400ms ease 0.9s;
}

.map_success_overlay.active .map_success_text p {
  opacity: 1;
  transform: translateY(0);
}

.map_next_challenge {
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 10px;
  padding: 16px 24px;
  max-width: 380px;
  width: 85%;
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 400ms ease 1.4s, transform 400ms ease 1.4s;
}

.map_success_overlay.active .map_next_challenge {
  opacity: 1;
  transform: translateY(0);
}

.map_next_challenge .next_label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 8px 0;
}

.map_next_challenge .next_prompt {
  font-size: 1rem;
  color: var(--text_clr);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.map_next_challenge .btn_proceed {
  padding: 8px 32px;
  border: 2px solid var(--accent_blue);
  background: linear-gradient(to bottom, var(--accent_blue) 0%, color-mix(in srgb, var(--accent_blue) 75%, black 30%) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}


/* ---- Map Snackbar (reusable toast inside map containers) ---- */
.map_snackbar, .map_snackbar_top {
  position: absolute;
  bottom: 60px;
  left: 50%;
  width: 380px;
  max-width: 90%;
  transform: translateX(-50%) translateY(10px);
  z-index: 15;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.map_snackbar_top {
  bottom: auto;
  top: 10px;
  transform: translateX(-50%) translateY(-10px);
}


/* ============================================================
   BrainLock Challenge Overlay
   ============================================================ */
.bl_overlay_backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

body.overlay_open { overflow: hidden; }

.overlay_center_box {
  margin: auto;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.overlay_p {
  font-size: clamp(20px, 4.5vw, 28px);
  line-height: 1.5em;
  font-weight: 500;
  margin: 0 auto;
/*  opacity: 0.5;*/
  text-align: center;
    color: var(--text_clr);
}

.bl_overlay_card {
  position: relative;
  width: 700px;
  max-width: 95vw;
  height: 92vh;
  min-height: 620px;
  max-height: 900px;
  margin: auto 0;
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: visible;
  flex-shrink: 0;
}

/* Auto-height variant — same width as all overlays, just shrinks to content height */
.bl_overlay_card_auto {
  width: 700px;
  max-width: 95vw;
  height: auto;
  min-height: 0;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.bl_overlay_card .card_close {
  z-index: 10001;
}

.bl_overlay_header {
  text-align: center;
  flex-shrink: 0;
  margin: 16px auto 20px auto;
}

.bl_overlay_header h2 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 4px;
}

.bl_overlay_header p {
  font-size: 11px;
    opacity: 0.3;
    margin: -12px 0 0 40px;
    font-weight: 700;
}

.bl_overlay_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Map fills available space inside the overlay */
.bl_overlay_body .challenge_map_wrap {
  flex: 1;
  min-height: 340px;
  aspect-ratio: auto;
  margin-bottom: 0;
}

.bl_overlay_footer {
  flex-shrink: 0;
  margin-top: 12px;
  text-align: center;
}

.pro_icons_cont {
    display: flex;
    gap: 15px;
    margin: 0 auto 20px auto;
      max-width: 620px;
}

.pro_icon_btn {
    flex: 1 1 0; /* equal width distribution */
    height: 110px;
    border-radius: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid var(--bottom_bev_clr);
    box-shadow: 0 8px 10px rgba(0,0,0,0.05);
}

.pro_icon_btn:hover {
  border-color: var(--accent_orange);
}

.feed_card, .feed_left_card, .feed_right_card {
  border-radius: 20px;
  border: 1px solid var(--bottom_bev_clr);
  padding: 20px 25px;
  margin: auto;
  margin-bottom: 24px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.05);
  min-height: 40px;
  position: relative;
  overflow: auto;
}


.pro_icons_cont a, .pro_icons_cont a:visited, 
  .pro_icons_cont a:hover, .pro_icons_cont a:active, .pro_icons_cont a:focus {
    text-decoration: none;
    color: #FFF;
}

  .pro_icon {
      margin: 15px auto 4px auto;
      width: 100%;
      max-width: 50px;
  }

  @media (max-width: 450px) {
      .pro_icon_btn {
          font-size: 12px;
      }

  }

/* Enroll overlay — full-screen map mode on mobile */
@media (max-width: 600px) {

  .map_snackbar, .map_snackbar_top {
    width: 90%;
    max-width: 380px;
  }

  .bl_overlay_card.enroll_map_active {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh; /* fallback for older browsers */
    height: 100dvh; /* accounts for mobile browser chrome */
    max-height: 100dvh;
    min-height: 0;
    border-radius: 0;
    border: none;
    padding: 12px 10px;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .bl_overlay_card.enroll_map_active .bl_overlay_header {
    margin: 0px 0 4px 0;
    text-align: left;
  }
  .bl_overlay_card.enroll_map_active .bl_overlay_header h2 {
    font-size: 22px;
  }
  .bl_overlay_card.enroll_map_active .bl_overlay_header p {
    display: none;
  }
  .bl_overlay_card.enroll_map_active .challenge_prompt_box {
    margin-bottom: 12px;
  }
  .bl_overlay_card.enroll_map_active .bl_overlay_body .challenge_map_wrap {
    border-radius: 0;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
  .bl_overlay_card.enroll_map_active .bl_overlay_footer {
    margin-top: 8px;
  }

  .bl_overlay_card.enroll_map_active .card_close {
    top: 6px;
    right: 6px;
  }

  .bl_overlay_card.enroll_map_active .card_close .icon_svg {
    width: 36px;
    height: 36px;
  }
}


/* ============================================================
   New overlay layout (transitional — _2 suffix)
   Canonical CSS lives in dialog_test.php; this block mirrors it
   so the same classes work on any page. Do not edit the values
   here without updating dialog_test.php (and vice versa).
   Header + footer stay pinned (position: absolute against card);
   only .dialog_body scrolls. On mobile the card pins all four
   sides so it always fits the viewport.
   ============================================================ */
.bl_overlay_card_2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 95vw;
  height: 90vh;
  max-height: 900px;
  background: var(--card_clr);
  border: 2px solid var(--bottom_bev_clr);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: visible;
  flex-shrink: 0;
}

.dialog_body {
  position: absolute;
  top: 80px;
  right: 25px;
  bottom: 80px;
  left: 25px;
  overflow-y: auto;
  overflow-x: hidden; /* prevents absolute-positioned children with negative
                         right offsets (e.g. .question_refresh_btn) from
                         introducing a horizontal scrollbar */
}

/* Modifier — center the body's content on both axes (use for intro/instruction
   phases and short content like PIN entry). For long text, use .overlay_center_box
   inside; it has flex:1 + justify-content:center and will absorb the free space. */
.dialog_body.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Modifier — for phases that contain a map. Body becomes a flex column so the
   map_wrap fills the remaining space below the prompt. */
.dialog_body.with_map {
  display: flex;
  flex-direction: column;
}

.dialog_body.with_map .challenge_map_wrap {
  flex: 1;
  min-height: 340px;
  aspect-ratio: auto;
  margin-bottom: 0;
}

.bl_overlay_footer_2 {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
}

@media (max-width: 600px) {
  .bl_overlay_card_2 {
    position: absolute;
    transform: none;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    min-height: auto;
    max-height: auto;
    height: auto;
  }

  .dialog_body {
    top: 60px;
    right: 15px;
    left: 15px;
  }
    
.signup_slide .dialog_body {
    top: 90px;
  }

  .bl_overlay_card_2 .bl_overlay_header {
    margin: 15px 0 0 15px;
    text-align: left;
  }
}



/* ============================================================
   Responsive Breakpoints
   ============================================================ */

@media (max-width: 1100px) {
  /* .top_menu { grid-template-columns: 250px 1fr 150px; } */
}

@media (max-width: 1020px) {
  .container { grid-template-columns: minmax(270px, 23%) 1fr; }
  .right_col { display: none; }
  .top_menu_icon_container, .top_menu_secure_icon_cont { 
      display: block; 
  }
}

@media (max-width: 900px) {
  .right_col { display: none; }
  .container { grid-template-columns: minmax(250px, 30%) 1fr; }
}

@media (max-width: 800px) {
  body { padding-top: 75px; }
  .top_menu_tabs_container { margin-top: 12px; }
  .top_menu {
    height: 60px;
    /* grid-template-columns: 20% 1fr 20%; */
  }
    .top_menu_icon_container {
    top: 10px;
    right: 11px;
  }
    
  .top_menu_secure_icon_cont {
      top: 10px;
    left: 11px;
  }
    
  .top_menu_logo {
    max-width: 280px;
  }
  .orange_logo { display: block; }
}

@media (max-width: 750px) {
  .post_input_cont { padding: 10px 20px; }
  .container { grid-template-columns: 1fr; }
  .left_col { display: none; }
}

@media (max-width: 600px) {
  /* .top_menu { grid-template-columns: 65px 1fr 65px; } */
  p {
    font-size: 18px;
  }
  .top_menu_tabs_container { width: 98%; }
  .top_menu_logo {
    max-width: 250px;
  }
  .container { margin: 0 auto; }
  .col { padding: 5px 10px; }
  .mob_only { display: block; }
  .desk_only { display: none; }

  .card_close {
    top: 10px;
    right: 8px;
  }

  .overlay_p {
    font-size: clamp(18px, 5vw, 24px);
  }

  .feed_card { 
    padding: 20px;
  }
  
/*
  .is_utility_page .feed_card {
    height: calc(100vh - 85px);
  }
*/
    
  .is_utility_page .feed_card {
    position: absolute;
    transform: none;
    top: 10px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    width: auto;
    max-width: none;
    min-height: auto;
    max-height: auto;
    height: auto;
  }
    
  .is_utility_page .inset_cont {
      overflow: scroll;
      position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    top: 80px;
    height: auto;
  }
    
    .is_utility_page .middle_col {
        padding: 0 5px;
    }
    
  .is_utility_page .bl_overlay_card_2 {
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
  }
    
    .display_text_utility {
        margin: 0 0 0 10px;
    }
    
    .vault_item h2 {
        font-size: 1.1em;
    }
    
    .note_body_input {
        font-size: 0.85em;
    }
    
    .note_title_input {
        padding: 10px 14px;
        font-size: 1em;
    }
    .note_dialog_title_wrap {
       left:16px;
    }
    
    
  .feed_card_margin {
    padding: 35px 18px !important;
  }
    
    
  .feed_card_margin30 {
    padding: 30px 18px 50px 18px !important;
  }
    
  .is_utility_page .feed_card_margin30 {
    padding: 25px 18px !important;
  }
    
  .mybrainlocks .feed_card { 
    padding: 20px 10px;
  }

  .bl_overlay_card {
    width:auto;
    max-width: 95vw;
    padding: 20px;
  }

  .blog_closing {
    margin: 20px -8px;
    padding: 20px;
    border-radius: 10px;
  }

  /* .display_text {
    font-size: 2.5em;
  } */

  .tagline_display {
    font-size: 1em;
  }

  .tagline_display_2 {
    font-size: 0.9em;
  }

}

/*
@media (max-width: 500px) {
  .top_menu_logo {
    margin-left: 30px;
  }
}
*/

@media (prefers-reduced-motion: reduce) {
  .blackout, .burger_menu, .burger_menu_secure { transition: none; }
}

.map_snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map_snackbar_top.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   Profile / Avatar
   ============================================================ */
.profile_avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--bg_clr);
  background-color: var(--bg_clr);
  background-image: url('/assets/images/user_profile.png');
  background-position: center;
  background-size: cover;
  margin: 0 auto 12px;
  position: relative;
  transition: opacity 0.2s;
}
.profile_avatar_edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: var(--accent_orange);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.profile_avatar_edit .icon_svg {
  width: 14px; height: 14px;
  background: #fff;
}

/* ---- Avatar upload spinner ---- */
.profile_avatar.avatar_uploading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: avatar_spin 0.8s linear infinite;
}

.profile_avatar.avatar_uploading {
  opacity: 0.5;
  pointer-events: none;
}

@keyframes avatar_spin {
  to { transform: rotate(360deg); }
}

/* ---- Display Name (large centered heading) ---- */
.profile_display_name {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--text_clr);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ============================================================
   Edit Mode (body.edit_mode toggles)
   ============================================================ */
.profile_edit_name { display: none; }
.profile_edit_email { display: none; }
.profile_edit_only { display: none; }
body.edit_mode .profile_display_name { display: none; }
body.edit_mode .profile_edit_name { display: block; }
body.edit_mode .profile_edit_email { display: block; }
body.edit_mode .profile_edit_only { display: flex; }
body.edit_mode .profile_email_value { display: none; }
body.edit_mode .profile_avatar_edit { display: flex; }
body.edit_mode .profile_avatar { cursor: pointer; }
body.edit_mode .profile_avatar:hover { opacity: 0.8; }

.input_hint {
  font-size: 11px;
  opacity: 0.4;
  margin: 6px 0 0;
  line-height: 1.4;
  text-transform: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

.toggle_row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle_bg.toggle_disabled {
  opacity: 0.25;
  pointer-events: none;
  cursor: not-allowed;
}

.toggle_label {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.4;
}
body.edit_mode .edit_btn .icon_svg { background: var(--accent_orange); }

/* ---- Save Bar (edit mode only) ---- */
.profile_save_bar { display: none; margin-top: 16px; text-align: right; }
body.edit_mode .profile_save_bar { display: block; }

/* ============================================================
   Device List
   ============================================================ */
.device_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--card_clr);
}
.device_item:last-child { border-bottom: none; }
.device_name { font-size: 16px; }
.device_meta { font-size: 12px; opacity: 0.5; }
.device_remove { font-size: 11px; }

/* ============================================================
   Action Row (icon + label, clickable)
   ============================================================ */
.action_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  opacity: 0.6;
}
.action_row:hover { opacity: 1; }
.action_row .icon_svg {
  width: 20px; height: 20px;
  background: var(--accent_orange);
  flex-shrink: 0;
}

/* ============================================================
   BrainLock List Item
   ============================================================ */
.brainlock_item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
    border-radius: 10px;
/*  border-bottom: 1px solid var(--trim_clr);*/
  
}

.brainlock_item:nth-child(even) {
    background: rgba(0,0,0,0.2);
}
/*.brainlock_item:last-child { border-bottom: none; }*/

.brainlock_type_icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  /* background: var(--card_clr_lit); */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brainlock_type_icon .icon_svg {
  width: 30px; height: 30px;
  background: var(--accent_blue);
}

.brainlock_type_thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.brainlock_thumb_wrap {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brainlock_poster {
  width: 38px;
  height: 52px;
  border-radius: 2px;
}

.brainlock_info {
  flex: 1;
  min-width: 0;
}
.brainlock_prompt {
  font-size: 16px;
  /* font-style: italic; */
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brainlock_type_label {
  font-size: 12px;
  opacity: 0.5;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Open Sans", sans-serif;
}

.items_remove_x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg_clr);
  /* border: 1px solid var(--trim_clr); */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.items_remove_x .icon_svg {
  width: 22px; height: 22px;
  background: var(--trim_clr);
  transition: background 0.15s;
}
.items_remove_x:hover {
  background: #000;
  /* border-color: var(--accent_red); */
}
.items_remove_x:hover .icon_svg {
  background: var(--accent_red);
}

/* ---- Empty State ---- */
.empty_state {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.5;
}
.empty_state .icon_svg {
  width: 48px; height: 48px;
  background: var(--trim_clr);
  margin: 0 auto 12px;
  display: block;
}
.empty_state_text {
  font-size: 14px;
  font-family: "Oswald", sans-serif;
}

/* ---- Hint Bar (subtle message at bottom) ---- */
.hint_bar {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  opacity: 0.7;
  /* font-family: "Oswald", sans-serif; */
}


/* ============================================================
   Homepage (index.php)
   ============================================================ */
body.page_home { overflow: hidden; margin: 0; padding: 0 !important; }
body.page_home footer { display: none; }
.home_container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  padding: 20px;
  z-index: 1;
  overflow-y: auto;
  margin-top: 65px;
}
.home_card {
  width: 100%;
  max-width: 480px;
  margin: auto 0 !important;
  flex-shrink: 0;
}

.rounded { border-radius: 999px; }


/* ============================================================
   Enroll Page
   ============================================================ */
.enroll_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
}
@media (max-width: 800px) {
  .enroll_grid { grid-template-columns: 1fr; }
}

.enroll_map_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .enroll_map_wrap { aspect-ratio: 3 / 5; }
}
.enroll_map_wrap.map_fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  border-radius: 0;
  z-index: 50;
}
#enroll_map {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.enroll_crosshair {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  pointer-events: none;
}
.enroll_crosshair::before,
.enroll_crosshair::after {
  content: "";
  position: absolute;
  background: rgba(0,0,0,0.5);
}
.enroll_crosshair::before { top: 50%; left: 0; right: 0; height: 1px; }
.enroll_crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; }

.enroll_dist_pill {
  position: absolute;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
}
.enroll_dist_x { bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 11; }
.enroll_dist_y { right: 10px; top: 50%; transform: translateY(-50%); }

#btn_save_location {
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.enroll_counter {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 16px;
}
.enroll_counter strong { opacity: 1; }

.enrolled_list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.enrolled_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--trim_clr);
  font-size: 14px;
}
.enrolled_num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent_orange);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.enrolled_prompt { flex: 1; }
.enrolled_delete {
  cursor: pointer;
  opacity: 0.4;
  font-size: 18px;
  padding: 0 4px;
}
.enrolled_delete:hover { opacity: 1; color: var(--accent_red); }


/* ============================================================
   Challenge Page
   ============================================================ */
.challenge_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 40px;
}
@media (max-width: 800px) {
  .challenge_grid { grid-template-columns: 1fr; }
}

.challenge_map_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .challenge_map_wrap { aspect-ratio: 3 / 5; }
}
.challenge_map_wrap.map_fullscreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100vw !important;
  border-radius: 0;
  z-index: 50;
}
#challenge_map,
#enroll_overlay_map,
#enroll_verify_map {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.challenge_crosshair {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  pointer-events: none;
}
.challenge_crosshair::before,
.challenge_crosshair::after {
  content: "";
  position: absolute;
  background: rgba(0,0,0,0.5);
}
.challenge_crosshair::before { top: 50%; left: 0; right: 0; height: 1px; }
.challenge_crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; }

.challenge_dist_pill {
  position: absolute;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  font-width: 700;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
}
.challenge_dist_x { bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 11; }
.challenge_dist_y { right: 10px; top: 50%; transform: translateY(-50%); }
.challenge_counter_pill {
  position: absolute;
  top: 10px; left: 10px;
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 11;
  pointer-events: none;
  font-weight: 600;
  font-variation-settings: "wdth" 600;
}

#btn_submit_location {
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.challenge_progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}
.challenge_dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--trim_clr);
  transition: background 0.3s;
}
.challenge_dot.active {
  background: var(--accent_blue);
  box-shadow: 0 0 6px var(--accent_blue);
}
.challenge_dot.passed { background: var(--accent_green); }
.challenge_dot.failed { background: var(--accent_red); }

.challenge_prompt_box {
  position: relative;
  text-align: center;
  padding: 0 2px;
  border: 1px solid var(--trim_clr);
  border-radius: 10px;
  background: var(--bg_clr);
  color: #fff;
  margin-bottom: 12px;
}
.challenge_prompt_text {
  font-size: 14px;
  /* font-style: italic; */
}

.challenge_prompt_label {
  position:absolute;
  padding: 2px 10px 0 10px;
  border: 1px solid var(--trim_clr);
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: var(--bg_clr);
  top: -18px;
  left: 5px;
  font-size: 12px;
  font-weight: 700;
  color:var(--trim_clr);
}

.challenge_prompt_label span {
  /* color:var(--accent_blue); */
}

.success_overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.success_overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.success_lottie { width: 120px; height: 120px; }

/* ---- Fail overlay ----
   Red full-coverage equivalent of .success_overlay. Centered red message
   banner with a small OK button. Stays open until the user taps OK. */
.fail_overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fail_overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.fail_message {
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  background: linear-gradient(to bottom, var(--accent_red) 0%, color-mix(in srgb, var(--accent_red) 75%, black 30%) 100%);
  border: 2px solid var(--accent_red);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.fail_ok_btn { min-width: 120px; }


/* ============================================================
   Debug Panel (shared between enroll + challenge)
   ============================================================ */
.debug_panel {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
}
.debug_panel h3 {
  color: var(--accent_orange);
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.debug_entry {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.debug_entry.pass {
  background: rgba(153,204,0,0.08);
  border: 1px solid rgba(153,204,0,0.2);
}
.debug_entry.fail {
  background: rgba(255,0,66,0.08);
  border: 1px solid rgba(255,0,66,0.2);
}
.debug_entry.pending {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.debug_entry_num {
  display: inline-block;
  background: var(--accent_orange);
  color: #000;
  width: 20px; height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
}
.debug_entry_prompt {
  color: #a855f7;
  font-style: italic;
  margin-bottom: 6px;
}
.debug_row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.debug_label { color: #666; }
.debug_value { color: #22d3ee; font-family: sans-serif; }
.debug_hash {
  color: #666;
  font-size: 10px;
  word-break: break-all;
  margin-top: 4px;
  line-height: 1.4;
}
.debug_match { color: #99cc00; font-weight: bold; }
.debug_mismatch { color: #ff0042; font-weight: bold; }
.debug_live {
  padding: 8px 10px;
  margin-bottom: 12px;
  background: rgba(255,102,0,0.08);
  border: 1px solid rgba(255,102,0,0.2);
  border-radius: 6px;
}
.debug_live .debug_value { color: var(--accent_orange); }


/* ============================================================
   Dashboard
   ============================================================ */
.middle_col .feed_card { max-width: 100%; overflow: hidden; }
.feed_left_card { overflow: hidden; }

.dash_stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.dash_stat_card {
  background: var(--card_clr);
  border: 1px solid var(--bottom_bev_clr);
  border-radius: 20px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 10px rgba(0,0,0,0.05);
}
.dash_stat_card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dash_stat_card:nth-child(1)::before { background: linear-gradient(90deg, var(--accent_orange), #ff9944); }
.dash_stat_card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent_green), #66dd44); }
.dash_stat_card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent_blue), #44bbff); }
.dash_stat_card:nth-child(4)::before { background: linear-gradient(90deg, #a855f7, #c084fc); }
.dash_stat_label {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  margin-bottom: 6px;
}
.dash_stat_value {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.dash_stat_change {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.dash_stat_change.up { color: var(--accent_green); }
.dash_stat_change.down { color: var(--accent_red); }

.dash_chart_title {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text_clr);
}
.dash_chart { width: 100%; min-width: 0; overflow: hidden; }

.dash_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.dash_grid .feed_card { margin-bottom: 0; }

@media (max-width: 750px) {
  .dash_grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .dash_stats { grid-template-columns: 1fr; }
}

/* ============================================================
   Signup Overlay
   ============================================================ */
.signup_backdrop {
  overflow: hidden !important;
  align-items: center !important;
}

/* Setup incomplete banner */
.setup_banner {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid var(--accent_orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.setup_banner_inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setup_banner_inner p {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--accent_orange);
  font-weight: 600;
}

.setup_banner_inner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .setup_banner_inner {
    flex-direction: column;
    text-align: center;
  }
  .setup_banner_inner .btn {
    width: 100%;
  }
}

.signup_card {
  width: 95vw;
  max-width: 600px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.signup_card > .card_close {
  position: sticky;
  top: 0px;
  z-index: 10;
  width: fit-content;
  margin-left: auto;
  margin-bottom: -40px;
}

.signup_body {
  flex: 0;
}

.signup_footer {
  margin-top: 16px;
}

.signup_footer_split {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.signup_footer_split .btn_back {
  flex: 1;
}

.signup_footer_split .btn_next {
  flex: 2;
}

.signup_dob_row {
  display: flex;
  gap: 10px;
}

.signup_dob_row .dob_month { flex: 2; }
.signup_dob_row .dob_day { flex: 1; }
.signup_dob_row .dob_year { flex: 1; }

.signup_pill {
  flex-shrink: 0;
}

.std_label_spaced {
  margin-top: 12px;
}

.std_label_spaced_lg {
  margin-top: 20px;
}

.std_label_optional {
  font-weight: 400;
  text-transform: none;
  opacity: 0.5;
}

.signup_intro_sub {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text_clr);
/*  opacity: 0.5;*/
}

.signup_intro_heading {
  margin-bottom: 20px;
}

.signup_intro_body {
  margin-bottom: 24px;
}

.how_it_works_text {
  padding: 10px 14px;
  opacity: 0.6;
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   Signup Overlay — Step Transitions (simple show/hide)
   ============================================================ */
.signup_slider {
  width: 100%;
}

.signup_slide {
  display: none;
}

.signup_slide.active {
  display: block;
}

/* ============================================================
   Song Memory Challenge
   ============================================================ */
.song_results {
  margin-top: 12px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

#song_phase_search .bl_overlay_body {
  overflow: hidden;
}

#song_phase_search {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.song_result_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.song_result_item:hover {
  background: rgba(255,255,255,0.05);
}

.song_result_artwork {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.song_result_info {
  flex: 1;
  min-width: 0;
}

.song_result_title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song_result_artist {
  font-size: 13px;
  opacity: 0.6;
}

.song_result_album {
  font-size: 12px;
  opacity: 0.4;
}

.song_loading {
  text-align: center;
  padding: 20px;
  opacity: 0.5;
  font-size: 14px;
}

/* Selected song card */
.song_selected_card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg_clr);
  border-radius: 12px;
  border: 1px solid var(--bottom_bev_clr);
  margin-top: 30px;
}

.song_artwork {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.song_selected_info {
  flex: 1;
  min-width: 0;
}

.song_selected_title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.song_selected_artist {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 2px;
}

.song_selected_album {
  font-size: 13px;
  opacity: 0.4;
}

/* Song enrolled list now uses .image_enrolled_* classes for consistency */

/* ============================================================
   Image Memory Challenge
   ============================================================ */
.image_upload_zone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding-bottom: min(100%, 280px);
  position: relative;
  background: var(--bg_clr);
  border: 2px dashed var(--bottom_bev_clr);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.image_upload_zone_inner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image_upload_zone:hover {
  border-color: var(--accent_orange);
}

.image_upload_placeholder {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.image_preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.image_phase_panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.image_verify_display {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 12px auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg_clr);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.image_verify_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.image_loading_text {
  position: absolute;
  opacity: 0.3;
  font-size: 14px;
}

@media (max-height: 700px) {
  .image_verify_display {
    max-width: min(100%, 40vh);
  }
}

/* Enrolled images list */
.image_enrolled_item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.image_enrolled_item:last-child {
  border-bottom: none;
}

.image_enrolled_item .items_remove_x {
  flex-shrink: 0;
  margin-left: auto;
}

.image_enrolled_info {
  flex: 1;
  min-width: 0;
}

.image_enrolled_thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.image_enrolled_title {
  font-weight: 700;
  font-size: 15px;
}

.image_enrolled_date {
  font-size: 12px;
  opacity: 0.4;
}
