@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {

      --navy: #10145f;

      --navy2: #1c2178;

      --navy3: #292f91;



      --blue: #00aeea;

      --blue-light: #37cfff;



      --gold: #fff200;

      --gold2: #fff200;



      --red: #ed1c24;

      --red-light: #ff4b52;



      --white: #ffffff;

      --gray: #d7d9ef;

      --gray2: #9ea3d1;



      --green: #27ae60;

      --green-light: #2ecc71;

      --orange: #ff9f1c;



      --card-radius: 16px;

      --transition: 0.3s cubic-bezier(.4, 0, .2, 1);

    }



    * {

      box-sizing: border-box;

      margin: 0;

      padding: 0;

    }



    html,

    body {

      min-height: 100vh;

      background: var(--navy);

      font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

      color: var(--white);

      -webkit-font-smoothing: antialiased;

    }



    .app-wrap {

      max-width: 560px;

      margin: 0 auto;

      padding: 0 0 60px 0;

      min-height: 100vh;

    }



    
    .header-navigation-wrapper {
      position: sticky;
      top: 0;
      z-index: 105;
    }

    .header-links {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));

      justify-content: center;

      gap: 7px;

      padding: 8px 12px 10px;

      background: linear-gradient(135deg, #10145f 0%, #1c2178 100%);

      border-bottom: 3px solid var(--gold);

      box-shadow: 0 4px 20px rgba(0, 0, 0, .42);

    }

    .guest-header-links {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }



    .header-links::after {

      content: "";

      position: absolute;

      bottom: 0;

      left: 0;

      width: 100%;

      height: 3px;

      background: linear-gradient(90deg, #ed1c24, #ffd51a);

    }



    .header-link-block {

      text-align: center;

      text-decoration: none;

      color: inherit;



      padding: 5px 4px;

      border-radius: 8px;



      background: rgba(255, 255, 255, 0.05);

      border: 1px solid rgba(255, 255, 255, 0.08);



      min-width: 0;

      min-height: 52px;

      display: flex;

      flex-direction: column;

      align-items: center;

      justify-content: center;



      transition: all 0.2s ease;

    }



    button.header-link-block {

      width: 100%;

      font-family: inherit;

      cursor: default;

    }



    .header-link-icon {

      font-size: 18px;

    }

.header-link-icon img {

  width: 32px;

  height: 32px;

  object-fit: contain;

  border-radius: 8px;

}



    .header-link-text {

      font-size: 10px;

      color: var(--gold);

      margin-top: 3px;

      font-weight: 600;

      letter-spacing: 0.5px;

      line-height: 1.12;

      overflow-wrap: anywhere;

    }



    .header-link-block:hover {

      transform: translateY(-3px) scale(1.03);

      background: rgba(255, 255, 255, 0.08);

    }



    .header-logo {

      width: 86px;

      max-width: 32%;

      display: block;

      margin: 0 auto 4px auto;

    }



    .header-emblem {

      font-size: 17px;

      margin-bottom: 1px;

      letter-spacing: 1.3px;

      color: var(--gold);

      font-weight: 900;



      text-align: center;

      text-shadow: 0 0 18px rgba(255, 213, 26, .45);

    }



    .header-sub {

      font-size: 9px;

      color: var(--gray);

      letter-spacing: 1.6px;

      text-transform: uppercase;

      text-align: center;

    }



    .app-header {
      background: linear-gradient(135deg, #10145f 0%, #1c2178 100%);
      padding: 8px 12px 6px;
      text-align: center;
      position: relative;
    }

    .guest-portal-link {
      position: absolute;
      top: 8px;
      left: 12px;
      font-size: 10px;
      color: var(--gold);
      font-weight: 600;
      text-decoration: underline;
      z-index: 10;
    }

    .header-right-links {
      position: absolute;
      top: 8px;
      right: 12px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 3px;
      z-index: 10;
    }

    .header-top-link {
      font-size: 10px;
      color: var(--gold);
      font-weight: 600;
      text-decoration: underline;
      line-height: 1.2;
    }

    .header-top-link:hover,
    .guest-portal-link:hover {
      opacity: 0.85;
    }



    .header-emblem {

      color: var(--gold);

      text-shadow: 0 0 18px rgba(255, 213, 26, .55);

    }



    .header-emblem sup {

      font-size: 0.55em;

      position: relative;

      top: -0.4em;

    }



    .standards-disclaimer {

      font-size: 11px;

      color: var(--white);

      margin: 4px 0 10px 0;

      line-height: 1.4;

      font-style: italic;

    }



    .header-link {

      text-decoration: none;

      display: inline-block;

    }



    .header-link:hover {

      opacity: 0.85;

      cursor: pointer;

    }



    .header-sub {

      font-size: 9px;

      text-align: center;

      color: var(--gray);

      letter-spacing: 1.6px;

      text-transform: uppercase;

    }



    .header-sub-gold {

      font-size: 12px;

      color: var(--gold);

      text-decoration: underline;

    }



    .header-sub-gold:hover {

      opacity: 0.85;

    }



    .progress-wrap {

      background: var(--navy2);

      padding: 14px 20px 10px;

      border-bottom: 1px solid rgba(255, 255, 255, .07);

      position: sticky;

      top: var(--sticky-links-height, 129px);

      z-index: 104;

    }



    .progress-steps {

      display: flex;

      justify-content: space-between;

      align-items: center;

      position: relative;

    }



    .progress-line {

      position: absolute;

      top: 14px;

      left: 14px;

      right: 14px;

      height: 2px;

      background: var(--navy3);

      z-index: 0;

    }



    .progress-line-fill {

      height: 100%;

      background: var(--gold);

      transition: width var(--transition);

    }



    .step-dot {

      width: 28px;

      height: 28px;

      border-radius: 50%;

      background: var(--navy3);

      border: 2px solid var(--gray2);

      display: flex;

      align-items: center;

      justify-content: center;

      font-size: 11px;

      font-weight: 700;

      color: var(--gray2);

      z-index: 1;

      position: relative;

      transition: all var(--transition);

      cursor: pointer;

    }



    /* modal Walk scroll */ .modal-overlay {

      opacity: 0;

      transition: opacity 0.25s ease;

    }







    .modal-overlay.show {

      display: flex;

      opacity: 1;

    }



    .modal-overlay {

      display: none;

      position: fixed;

      inset: 0;

      background: rgba(0, 0, 0, 0.75);

      z-index: 9999;

      align-items: center;

      justify-content: center;

    }



    .modal-overlay.show {

      display: flex;

    }



    .modal-box {

      width: 100%;

      max-width: 520px;

      max-height: 85vh;



      background: linear-gradient(180deg, var(--navy2), #171b66);

      border: 2px solid var(--gold);

      border-radius: 16px;



      padding: 18px;

      display: flex;

      flex-direction: column;



      overflow: hidden;

    }



    .modal-title {

      color: var(--gold);

      font-size: 16px;

      font-weight: 900;

      text-transform: uppercase;

      letter-spacing: 1.5px;

      margin-bottom: 12px;

      text-align: center;

    }



    .modal-content {

      overflow-y: auto;

      max-height: 55vh;

      color: var(--white);

      font-size: 13px;

      line-height: 1.6;

      padding-right: 6px;

    }



    .modal-content p {

      margin-bottom: 12px;

    }



    .modal-close-btn {

      margin-top: 14px;

      width: 100%;

    }



    /* end MODAL SCROLL For walk */





/* Force the modal to stay hidden until the button is clicked */

.dw-weather-overlay {

  display: none !important; 

  position: fixed; 

  z-index: 9999; 

  left: 0;

  top: 0;

  width: 100%; 

  height: 100%; 

  background-color: rgba(0,0,0,0.7); 

}



/* Shown state - used only when triggered by JS */

.dw-weather-overlay.is-active {

  display: block !important;

}



.dw-weather-box {

  position: relative;

  background-color: #ffffff;

  margin: 10% auto; 

  padding: 25px;

  width: 318px; 

  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5);

}







      .step-dot.active {

      background: var(--gold);

      border-color: var(--gold);

      color: var(--navy);

    }



    .step-dot.done {

      background: var(--red);

      border-color: var(--red-light);

      color: var(--white);

    }



    .step-dot.done::after {

      content: '\2713';

      font-size: 13px;

    }



    .step-dot.done span {

      display: none;

    }



    .progress-labels {

      display: flex;

      justify-content: space-between;

      margin-top: 5px;

    }



    .step-label {

      font-size: 9px;

      color: var(--gray2);

      text-transform: uppercase;

      letter-spacing: 0.5px;

      width: 28px;

      text-align: center;

      transition: color var(--transition);

    }



    .step-label.active {

      color: var(--gold);

    }



    .panel {

      display: none;

      padding: 18px 18px 10px;

      color: var(--white);

      animation: slideIn var(--transition) forwards;

    }



    .panel.active {

      display: block;

    }



    @keyframes slideIn {

      from {

        opacity: 0;

        transform: translateX(16px);

      }



      to {

        opacity: 1;

        transform: translateX(0);

      }

    }



    .card {

      background: linear-gradient(180deg, var(--navy2), #171b66);

      border: 1px solid rgba(255, 213, 26, .14);

      box-shadow: 0 4px 16px rgba(0, 0, 0, .35);

    }



    .card-title {

      color: var(--gold);

    }



    .card-title .icon {

      font-size: 15px;

    }



    .field-group {

      margin-bottom: 13px;

    }



    .field-label {

      display: block;

      font-size: 10px;

      font-weight: 600;

      letter-spacing: 1px;

      text-transform: uppercase;

      color: var(--gray);

      margin-bottom: 5px;

    }



    input[type="number"],

    input[type="text"],

    input[type="email"],

    select {

      width: 100%;

      background: var(--navy3);

      border: 1.5px solid rgba(255, 255, 255, .12);

      border-radius: 10px;

      padding: 11px 13px;

      color: var(--white);

      font-size: 16px;

      font-family: inherit;

      outline: none;

      transition: border-color var(--transition), box-shadow var(--transition);

      -webkit-appearance: none;

      appearance: none;

    }



    .standards-grid {

      display: grid;

      grid-template-columns: 110px 1fr 1fr;

      gap: 10px;

      padding: 10px 12px;

      border-bottom: 1px solid rgba(255, 255, 255, .06);

      align-items: center;

      font-size: 12px;

    }



    .standards-grid:last-child {

      border-bottom: none;

    }



    .standards-head {

      color: var(--gold);

      font-size: 10px;

      font-weight: 700;

      letter-spacing: 1px;

      text-transform: uppercase;

      background: rgba(255, 255, 255, .03);

      border-radius: 10px 10px 0 0;

    }



    #standardsTableWrap {

      background: var(--navy3);

      border: 1px solid rgba(255, 255, 255, .08);

      border-radius: 10px;

      overflow: hidden;

    }



    #standardsTableWrap .standards-grid div:first-child {

      color: var(--gray);

      font-weight: 600;

    }



    #standardsTableWrap .standards-grid div:last-child {

      color: var(--white);

      font-weight: 700;

      text-align: right;

      font-variant-numeric: tabular-nums;

    }



    input:focus,

    select:focus {

      border-color: var(--gold);

      box-shadow: 0 0 0 3px rgba(240, 192, 64, .15);

    }



    input::placeholder {

      color: var(--gray2);

    }



    select option {

      background: var(--navy2);

      color: var(--white);

    }



    .input-row {

      display: grid;

      grid-template-columns: 1fr 1fr;

      gap: 11px;

    }



    .sex-toggle {

      display: flex;

      border-radius: 10px;

      overflow: hidden;

      border: 1.5px solid rgba(255, 255, 255, .12);

      background: var(--navy3);

    }

    .sex-toggle.invalid {

      border-color: var(--red) !important;

    }



    .sex-btn {

      flex: 1;

      padding: 11px;

      text-align: center;

      cursor: pointer;

      font-size: 14px;

      font-weight: 700;

      letter-spacing: 2px;

      color: var(--gray2);

      transition: all var(--transition);

      user-select: none;

    }



    .sex-btn.active {

      background: var(--gold);

      color: var(--navy);

    }



    .event-selector {

      display: flex;

      flex-direction: column;

      gap: 7px;

      margin-bottom: 13px;

    }



    .event-option {

      display: flex;

      align-items: center;

      background: var(--navy3);

      border: 1.5px solid rgba(255, 255, 255, .1);

      border-radius: 10px;

      padding: 11px 13px;

      cursor: pointer;

      transition: all var(--transition);

      gap: 11px;

      user-select: none;

    }



    .event-option:hover {

      border-color: rgba(240, 192, 64, .4);

    }



    .event-option.selected {

      background: rgba(0, 174, 234, .18);

      border-color: var(--gold);

      box-shadow: 0 0 0 1px rgba(255, 213, 26, .25);

    }



    .event-radio {

      width: 17px;

      height: 17px;

      border-radius: 50%;

      border: 2px solid var(--gray2);

      background: transparent;

      display: flex;

      align-items: center;

      justify-content: center;

      flex-shrink: 0;

      transition: all var(--transition);

    }



    .event-option.selected .event-radio {

      border-color: var(--gold);

      background: var(--gold);

    }



    .event-option.selected .event-radio::after {

      content: '';

      width: 6px;

      height: 6px;

      border-radius: 50%;

      background: var(--navy);

      display: block;

    }



    .event-info {

      flex: 1;

    }



    .event-name {

      font-size: 13px;

      font-weight: 600;

      color: var(--white);

    }



    .event-desc {

      font-size: 10px;

      color: var(--gray2);

      margin-top: 2px;

    }



    .event-abbrev {

      font-size: 10px;

      font-weight: 700;

      letter-spacing: 1px;

      color: var(--blue-light);

      background: rgba(46, 127, 212, .15);

      padding: 3px 7px;

      border-radius: 5px;

      white-space: nowrap;

    }



    .event-option.disabled {

      background: linear-gradient(rgba(237, 28, 36, 0.15),

          rgba(237, 28, 36, 0.15)), var(--navy3);

      border-color: rgba(237, 28, 36, 0.55);

      cursor: not-allowed;

      pointer-events: none;

      opacity: 1;

    }



    .event-option.disabled .event-radio {

      border-color: rgba(237, 28, 36, 0.65);

    }



    .event-option.disabled .event-name,

    .event-option.disabled .event-desc,

    .event-option.disabled .event-abbrev {

      opacity: 0.45;

    }



    .event-option.disabled .event-abbrev {

      background: rgba(237, 28, 36, 0.18);

      color: rgba(255, 255, 255, 0.55);

    }



    .test-type-toggle {

      display: flex;

      gap: 10px;

    }



    .pass-text {

      color: #2ecc71;

      /* green */

      font-weight: 700;

    }



    .fail-text {

      color: #ff4b52;

      /* red */

      font-weight: 700;

    }



    .pass-text {

      color: #2ecc71;

      font-weight: 700;

    }



    .fail-text {

      color: #ff4b52;

      font-weight: 700;

    }



    .test-type-option {

      flex: 1;

      background: var(--navy3);

      border: 1.5px solid rgba(255, 255, 255, .12);

      border-radius: 10px;

      padding: 11px;

      cursor: pointer;

      text-align: center;

      font-size: 12px;

      font-weight: 700;

      color: var(--gray);

    }



    .test-type-option input {

      margin-right: 6px;

    }



    .test-type-option:has(input:checked) {

      background: var(--gold);

      color: var(--navy);

      border-color: var(--gold);

    }



    .test-type-option:has(input:disabled) {

      background: linear-gradient(rgba(237, 28, 36, 0.15),

          rgba(237, 28, 36, 0.15)), var(--navy3);

      border-color: rgba(237, 28, 36, 0.5);

      cursor: not-allowed;

      opacity: 0.8;

    }



    .test-type-option:has(input:disabled) span {

      opacity: 0.6;

    }



    .live-score {

      background: linear-gradient(135deg, var(--navy3), rgba(30, 95, 168, .2));

      border: 1px solid rgba(240, 192, 64, .2);

      border-radius: 12px;

      padding: 13px 15px;

      display: flex;

      align-items: center;

      justify-content: space-between;

      margin-top: 4px;

    }



    .live-score-label {

      font-size: 10px;

      color: var(--gray);

      letter-spacing: 1px;

      text-transform: uppercase;

    }



    .live-score-value {

      font-size: 24px;

      font-weight: 900;

      color: var(--gold);

      font-variant-numeric: tabular-nums;

    }



    .live-score-max {

      font-size: 12px;

      color: var(--gray2);

      font-weight: 400;

    }



    .btn-row {

      display: flex;

      gap: 10px;

      padding: 0 2px;

      margin-top: 4px;

    }



    .results-btn-row {

      display: flex;

      gap: 10px;

      flex-wrap: wrap;

    }



    .result-btn-half {

      flex: 1 1 150px;

    }



    .btn {

      flex: 1;

      padding: 14px 18px;

      border: none;

      border-radius: 12px;

      font-size: 13px;

      font-weight: 700;

      letter-spacing: 1.5px;

      text-transform: uppercase;

      cursor: pointer;

      transition: all var(--transition);

      font-family: inherit;

    }



    .btn-primary {

      background: linear-gradient(135deg, var(--gold), var(--gold2));

      color: var(--navy);

      box-shadow: 0 4px 14px rgba(240, 192, 64, .3);

    }



    .btn-primary:hover {

      transform: translateY(-1px);

      box-shadow: 0 6px 18px rgba(240, 192, 64, .4);

    }



    .btn-primary {

      background: linear-gradient(135deg, var(--gold), var(--gold2));

      color: var(--navy);

      box-shadow: 0 4px 14px rgba(255, 213, 26, .28);

    }



    .btn-secondary {

      background: var(--navy3);

      color: var(--gray);

      border: 1.5px solid rgba(255, 213, 26, .18);

    }



    .btn-secondary:hover {

      color: var(--white);

      border-color: rgba(255, 255, 255, .25);

    }



    .result-hero {

      text-align: center;

      padding: 26px 18px 22px;

      background: var(--navy2);

      border-radius: var(--card-radius);

      margin-bottom: 14px;

      border: 1px solid rgba(255, 255, 255, .08);

      position: relative;

      overflow: hidden;

    }



    .result-hero::before {

      content: '';

      position: absolute;

      inset: 0;

      opacity: 0.04;

      background: radial-gradient(circle at 50% 50%, #fff, transparent 70%);

    }



    .result-badge {

      font-size: 11px;

      font-weight: 700;

      letter-spacing: 3px;

      text-transform: uppercase;

      padding: 5px 16px;

      border-radius: 20px;

      display: inline-block;

      margin-bottom: 10px;

    }



    .badge-pass {

      background: rgba(39, 174, 96, .2);

      color: var(--green-light);

      border: 1px solid var(--green);

    }



    .badge-fail {

      background: rgba(192, 57, 43, .2);

      color: #ff6b6b;

      border: 1px solid var(--red);

    }



    .badge-excellent {

      background: rgba(240, 192, 64, .15);

      color: var(--gold);

      border: 1px solid var(--gold2);

    }

    .badge-suspense {

      background: rgba(255, 159, 67, .2);

      color: #ff9f43;

      border: 1px solid #ff9f43;

    }



    .result-score-big {

      font-size: 76px;

      font-weight: 900;

      line-height: 1;

      font-variant-numeric: tabular-nums;

      margin-bottom: 4px;

    }



    .score-pass {

      color: var(--green-light);

      text-shadow: 0 0 28px rgba(46, 204, 113, .3);

    }



    .score-excellent {

      color: var(--gold);

      text-shadow: 0 0 28px rgba(240, 192, 64, .3);

    }



    .score-fail {

      color: #ff6b6b;

      text-shadow: 0 0 28px rgba(231, 76, 60, .3);

    }

    .score-suspense {

      color: #ff9f43;

      text-shadow: 0 0 28px rgba(255, 159, 67, .3);

    }



    .result-score-label {

      font-size: 11px;

      color: var(--gray);

      letter-spacing: 2px;

      text-transform: uppercase;

    }



    .score-grid {

      display: grid;

      grid-template-columns: 1fr 1fr;

      gap: 10px;

      margin-bottom: 14px;

    }



    .score-item {

      background: var(--navy2);

      border-radius: 12px;

      padding: 13px;

      border: 1px solid rgba(255, 255, 255, .07);

      display: flex;

      flex-direction: column;

      gap: 5px;

    }



    .score-item-label {

      font-size: 9px;

      color: var(--gray2);

      letter-spacing: 1px;

      text-transform: uppercase;

      font-weight: 600;

    }



    .score-item-event {

      font-size: 10px;

      color: var(--blue-light);

      font-weight: 600;

    }



    .score-item-value {

      font-size: 26px;

      font-weight: 900;

      color: var(--white);

      font-variant-numeric: tabular-nums;

      line-height: 1;

    }



    /* Walk PASS / FAIL override */

    #res-cardio.walk-pass,

    #cardioScoreVal.walk-pass {

      color: #2ecc71 !important;

    }



    #res-cardio.walk-fail,

    #cardioScoreVal.walk-fail {

      color: #ed1c24 !important;

    }



    .score-item-max {

      font-size: 11px;

      color: var(--gray2);

      font-weight: 400;

    }



    .score-bar-wrap {

      height: 4px;

      background: var(--navy3);

      border-radius: 2px;

      overflow: hidden;

      margin-top: 3px;

    }



    .score-bar {

      height: 100%;

      border-radius: 2px;

      transition: width 0.8s cubic-bezier(.4, 0, .2, 1);

    }



    .bar-gold {

      background: linear-gradient(90deg, var(--gold2), var(--gold));

    }



    .bar-blue {

      background: linear-gradient(90deg, var(--blue), var(--blue-light));

    }



    .bar-green {

      background: linear-gradient(90deg, var(--green), var(--green-light));

    }



    .summary-row {

      background: var(--navy2);

      border-radius: 12px;

      border: 1px solid rgba(255, 255, 255, .07);

      overflow: hidden;

      margin-bottom: 14px;

    }



    .summary-item {

      display: flex;

      justify-content: space-between;

      align-items: center;

      padding: 11px 15px;

      border-bottom: 1px solid rgba(255, 255, 255, .05);

      flex-wrap: wrap;

      gap: 4px;

    }



    .summary-item:last-child {

      border-bottom: none;

    }



    .summary-key {

      font-size: 11px;

      color: var(--gray);

      min-width: 110px;

    }



    .summary-val {

      font-size: 12px;

      font-weight: 600;

      color: var(--white);

      text-align: right;

    }



    .hint {

      font-size: 10px;

      color: var(--gray2);

      margin-top: 3px;

      padding: 0 2px;

    }



    .divider {

      height: 1px;

      background: rgba(255, 255, 255, .06);

      margin: 14px 0;

    }



    .time-grid {

      display: grid;

      grid-template-columns: 1fr 18px 1fr;

      align-items: center;

      gap: 4px;

    }



    .time-sep {

      text-align: center;

      font-size: 20px;

      font-weight: 700;

      color: var(--gray);

      padding-top: 4px;

    }



    .time-hint {

      font-size: 10px;

      color: var(--gray2);

      text-align: center;

      margin-top: 3px;

    }



    .mt-12 {

      margin-top: 12px;

    }



    .field-error {

      font-size: 10px;

      color: var(--red-light);

      margin-top: 3px;

      display: none;

    }



    .field-error.show {

      display: block;

    }



    input.invalid,

    select.invalid {

      border-color: var(--red) !important;

    }



    .welcome-hero {

      text-align: center;

      padding: 32px 18px 24px;

    }



    .welcome-logo {

      font-size: 50px;

      margin-bottom: 10px;

    }



    .welcome-title {

      font-size: 18px;

      font-weight: 900;

      color: var(--gold);

      letter-spacing: 2px;

      text-transform: uppercase;

      margin-bottom: 3px;

    }



    .welcome-sub {

      font-size: 11px;

      color: var(--gray);

      letter-spacing: 1px;

    }



    .component-list {

      list-style: none;

      display: flex;

      flex-direction: column;

      gap: 8px;

    }



    .component-list li {

      display: flex;

      align-items: center;

      gap: 9px;

      font-size: 12px;

      color: var(--gray);

    }



    .comp-dot {

      width: 7px;

      height: 7px;

      border-radius: 50%;

      background: var(--gold);

      flex-shrink: 0;

    }



    .comp-pts {

      margin-left: auto;

      font-size: 10px;

      color: var(--blue-light);

      font-weight: 700;

    }



    @media (min-width: 600px) {

      .panel {

        padding: 22px 22px 10px;

      }

    }



    .app-footer {

      margin-top: 14px;

      padding: 12px;

      text-align: center;

      font-size: 11px;

      color: var(--gray);

      line-height: 1.5;

    }



    .footer-link {

      color: var(--gold);

      text-decoration: underline;

      font-weight: 700;

    }



    .footer-link:hover {

      opacity: 0.85;

    }

  


    .official-tab {

      display: inline-flex;

      align-items: center;

      background: var(--navy3);

      border: 1.5px solid rgba(255,255,255,.12);

      border-radius: 8px;

      padding: 6px 12px;

      color: var(--gray);

      font-size: 11px;

      font-weight: 700;

      cursor: pointer;

      transition: all var(--transition);

      user-select: none;

    }

    .official-tab.active {

      background: var(--gold);

      color: var(--navy);

      border-color: var(--gold);

    }

    .official-tab .tab-close {

      margin-left: 8px;

      font-size: 12px;

      opacity: 0.6;

    }

    .official-tab .tab-close:hover {

      opacity: 1;

      color: var(--red);

    }

    .summary-row-item {

      background: var(--navy2);

      border-radius: 12px;

      border: 1px solid rgba(255,255,255,.07);

      margin-bottom: 10px;

      padding: 12px;

    }

    .summary-row-title {

      font-size: 13px;

      font-weight: 700;

      color: var(--gold);

      margin-bottom: 6px;

      border-bottom: 1px solid rgba(255,255,255,.1);

      padding-bottom: 4px;

    }

    .summary-row-content {

      font-size: 11px;

      color: var(--white);

      line-height: 1.6;

    }

    .summary-row-content span {

      display: inline-block;

    }

    .summary-row-content .divider-pipe {

      color: var(--gray2);

      margin: 0 6px;

    }




/* EXPLICIT HEX COLORS FOR SCREENSHOT (html2canvas bug fix) */
.screenshot-mode, .screenshot-mode * {
  color: #ffffff !important;
  text-shadow: none !important;
}
.screenshot-mode .result-score-label,
.screenshot-mode .score-item-label,
.screenshot-mode .score-item-max,
.screenshot-mode .summary-item-label,
.screenshot-mode #resultName {
  color: #d7d9ef !important; /* Bright silver/grey */
}
.screenshot-mode .score-pass, 
.screenshot-mode .badge-pass {
  color: #2ecc71 !important; /* Bright green */
}
.screenshot-mode .score-fail, 
.screenshot-mode .badge-fail {
  color: #ff4b52 !important; /* Bright red */
}
.screenshot-mode .score-bar-wrap {
  background-color: rgba(255,255,255,0.15) !important;
}
.screenshot-mode .bar-gold {
  background-color: #fff200 !important;
}

/* FORCE WHITE TEXT FOR SCREENSHOT */
.screenshot-mode, .screenshot-mode * {
  color: #ffffff !important;
  text-shadow: none !important;
}
.screenshot-mode .result-score-label,
.screenshot-mode .score-item-label,
.screenshot-mode .score-item-max,
.screenshot-mode .summary-item-label,
.screenshot-mode #resultName {
  color: #d7d9ef !important; 
}
.screenshot-mode .score-pass, 
.screenshot-mode .badge-pass {
  color: #2ecc71 !important; 
}
.screenshot-mode .score-fail, 
.screenshot-mode .badge-fail {
  color: #ff4b52 !important; 
}


/* RELEASE NOTES & APP HELP TOP RIGHT STYLES */
.header-right-links {
  position: absolute;
  top: 8px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  z-index: 110;
}

.header-top-link,
.release-notes-link,
.help-guide-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.guest-portal-theme .header-top-link,
.guest-portal-theme .release-notes-link,
.guest-portal-theme .help-guide-link {
  color: #89cff0;
}

.header-top-link:hover,
.release-notes-link:hover,
.help-guide-link:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .header-right-links {
    top: 6px;
    right: 10px;
    gap: 2px;
  }
  .header-top-link,
  .release-notes-link,
  .help-guide-link,
  .guest-portal-link {
    font-size: 10px;
  }
}

.guest-portal-link {
  position: absolute;
  top: 10px;
  left: 15px;
  color: var(--gold);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 106;
}

.guest-portal-link:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateY(-1px);
}

.timeline {
  position: relative;
  max-width: 500px;
  margin: 20px auto;
  padding: 0 10px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--navy3);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -1px;
  border-radius: 1px;
}

.timeline-item {
  padding: 10px 0 20px 40px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  left: 13px;
  top: 15px;
  background-color: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 8px var(--gold);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--red);
  box-shadow: 0 0 12px var(--red-light);
  transform: scale(1.2);
}

.timeline-date {
  font-size: 11px;
  color: var(--gray2);
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.timeline-version {
  font-size: 16px;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-version-tag {
  background: var(--navy3);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: normal;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.change-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.change-list li {
  font-size: 13px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.change-list li::before {
  content: attr(data-letter) ')';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.change-list li strong {
  color: var(--blue-light);
}

.timeline-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 480px) {
  .timeline-images {
    grid-template-columns: 1fr 1fr;
  }
}

.timeline-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-image-wrapper:hover {
  border-color: var(--gold);
  transform: scale(1.03);
}

.timeline-image-wrapper img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.timeline-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 20, 95, 0.85);
  color: var(--white);
  font-size: 10px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Guest Portal Theme Overrides */
.guest-portal-theme .header-links::after {
  background: linear-gradient(90deg, #89cff0, #ffffff) !important;
}

.guest-portal-theme .btn-primary {
  background: linear-gradient(135deg, #89cff0, #bfe3f7) !important;
  color: #10145f !important;
  box-shadow: 0 4px 14px rgba(137, 207, 240, 0.28) !important;
}

.guest-portal-theme .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(137, 207, 240, 0.4) !important;
}

.guest-portal-theme .sex-btn.active {
  background: #89cff0 !important;
  color: #10145f !important;
  border-color: #89cff0 !important;
}

.guest-portal-theme .official-tab.active {
  background: #89cff0 !important;
  color: #10145f !important;
  border-color: #89cff0 !important;
}

.guest-portal-theme .test-type-option:has(input:checked) {
  background: #89cff0 !important;
  color: #10145f !important;
  border-color: #89cff0 !important;
}

.guest-portal-theme .header-emblem {
  color: #89cff0 !important;
}

.guest-portal-theme .welcome-title {
  color: #89cff0 !important;
}

.guest-portal-theme .modal-title {
  color: #89cff0 !important;
}

.guest-portal-theme .header-link-text {
  color: #89cff0 !important;
}

.guest-portal-theme .step-label.active {
  color: #89cff0 !important;
}

.guest-portal-theme .card-title {
  color: #89cff0 !important;
}

.guest-portal-theme .standards-head {
  color: #89cff0 !important;
}

.guest-portal-theme .live-score-value {
  color: #89cff0 !important;
}

.guest-portal-theme .badge-excellent {
  background: rgba(137, 207, 240, 0.15) !important;
  color: #89cff0 !important;
  border-color: #89cff0 !important;
}

.guest-portal-theme .score-excellent {
  color: #89cff0 !important;
  text-shadow: 0 0 28px rgba(137, 207, 240, 0.3) !important;
}

.guest-portal-theme .step-dot.active {
  background: #89cff0 !important;
  border-color: #89cff0 !important;
}

/* Visitor Counter styles */
.visit-counter-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.digital-counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.digital-counter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  user-select: none;
  margin-bottom: 2px;
}

.digital-counter-odometer {
  display: flex;
  gap: 4px;
  background: #08080a;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.digital-counter-odometer .digit-box {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: linear-gradient(180deg, #25252b 0%, #0c0c0f 48%, #000000 52%, #121216 100%);
  border-radius: 4px;
  font-family: 'Share Tech Mono', 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: bold;
  user-select: none;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.5);
  box-sizing: border-box;
  overflow: hidden;
}

/* Faint unlit segment digit behind the active digit */
.digital-counter-odometer .digit-box::after {
  content: '8';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

/* Top-half gloss sheen overlay */
.digital-counter-odometer .digit-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

/* Portal Theme: Yellow/Red */
.digital-counter-container.portal-theme .digital-counter-label {
  color: #fff200; /* Yellow */
  text-shadow: 0 0 4px rgba(255, 242, 0, 0.2);
}
.digital-counter-container.portal-theme .digital-counter-odometer {
  border: 1.5px solid rgba(255, 242, 0, 0.55); /* Yellow/Gold bezel */
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 242, 0, 0.15);
}
.digital-counter-container.portal-theme .digit-box {
  color: #ff3333; /* Red digits */
  border: 1px solid rgba(255, 51, 51, 0.3);
  text-shadow: 0 0 6px rgba(255, 51, 51, 0.95), 0 0 10px rgba(255, 51, 51, 0.5);
}

/* Guest Theme: Light Blue/White */
.digital-counter-container.guest-theme .digital-counter-label {
  color: #ffffff; /* White */
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}
.digital-counter-container.guest-theme .digital-counter-odometer {
  border: 1.5px solid rgba(255, 255, 255, 0.5); /* White/Silver bezel */
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 255, 255, 0.15);
}
.digital-counter-container.guest-theme .digit-box {
  color: #89cff0; /* Light Blue digits matching guest theme */
  border: 1px solid rgba(137, 207, 240, 0.3);
  text-shadow: 0 0 6px rgba(137, 207, 240, 0.95), 0 0 10px rgba(137, 207, 240, 0.5);
}


