/* 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;
  --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_orange: #ff4e00;
  --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); }

/* Background utility classes */
.bg_plank { background-color: var(--bg_plank); }
.bg_color { background-color: var(--bg_clr); }
.card_color { background-color: var(--card_clr); }
.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; }
.rounded { border-radius: 999px; }

.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 {
  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_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: 14px;
  margin-bottom: 16px;
  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:14px; opacity:0.6;
}

.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_blue {
  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.4em;
  line-height: 1.8em;
}

.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);
}

.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_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_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_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;
}

.inline_count_pill {
  display: inline-block;
  margin-top: 10px;
  padding: 0 15px;
  color: #FFF !important;
  border-radius: 30px;
}

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

.callout_pill, .inline_callout {
  padding: 0 6px;
  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;
}

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

.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);
}

.centered_pin {
  justify-content: center;
  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 {
  margin: auto;
  max-width: 550px;
  /* border: 2px solid var(--card_clr_lit); */
  border-top: none;
  padding: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: rgba(15, 17, 22, 0.5);
  
}

.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 25px;
  font-weight: 700;
  font-variation-settings: "wdth" 700;
}

.btn_100 {
  width: 100%;
}

.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 {
  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_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%);
}


/* ---- Toggle Switches ---- */
.toggle_bg {
  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 {
  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);
}

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

.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 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  background: rgba(0,0,0,0.1);
  border: 1px solid var(--trim_clr);
  border-radius: 100px;
  justify-content: center;
}

.remember_device_label {
  font-size: 13px;
  opacity: 0.7;
  line-height: 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 {
  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;
}

.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_tab_item:hover,
.top_menu_tab_item.selected,
.top_menu_icon_container:hover,
.top_menu_icon_container.selected {
  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_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 {
  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_scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 55px;
  bottom: 5px;
  padding: 0 20px;
  overflow: auto;
}

.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 { overflow: hidden; }

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

body.menu_open .burger_menu {
  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_close .icon_svg {
  background-color: var(--bg_clr);
  width: 30px;
  height: 30px;
}

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

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

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

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

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

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


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

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

.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;
}

.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;
}

.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(--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;
}

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


/* ---- 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 ---- */
.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 {
  font-family: "Oswald", sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--accent_orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.panel_title_svg {
  width: 28px;
  height: 28px;
  background-color: var(--accent_orange);
  margin: 0 4px -5px 0;
}

/* ---- 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;
}

.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: clamp(13px, 2.5vw, 16px);
  opacity: 0.5;
  margin: 0;
}

.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;
}

/* 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;
  }
}





/* ============================================================
   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 { 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_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: 2px;
    right: 2px;
  }

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

  .feed_card { 
    padding: 20px;
  }

  .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: 1.2em;
  }

  .tagline_display_2 {
    font-size: 1.1em;
  }

}

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

@media (prefers-reduced-motion: reduce) {
  .blackout, .burger_menu { 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%;
  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 0;
  border-bottom: 1px solid var(--trim_clr);
}
.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;
}


/* ============================================================
   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; }


/* ============================================================
   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;
  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;
}
