:root {
    --bg-dark: #04060c;
    --bg-page: #ffffff;
    --card: #f7f8fa;
    --text: #14161f;
    --muted: #8c90a0;
    --track: #d6d9df;
    --pill: #11131a;
    --white: #fff;
    --orange: #ff7a00;
    --thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  
    --opt-1: #ff3b30;
    --opt-2: #ff8a00;
    --opt-3: #ffb400;
    --opt-4: #f2d600;
    --opt-5: #a6c500;
    --opt-6: #6ebe45;
    --opt-7: #24c55e;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg-page);
    color: var(--text);
  }
  
  .top-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-dark);
    color: var(--white);
    transition: box-shadow 0.25s ease;
  }
  
  .top-header.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
  
  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px 10px;
  }
  
  .header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  
  .brand {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.2px;
  }
  
  .subtitle {
    margin: 4px 0 14px;
    color: #c7ccd8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
  }
  
  .title {
    margin: 10px 0 0;
    font-size: 30px;
    font-weight: 400;
  max-height: 44px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
  }
  
  .logo {
    width: 80px;
    height: auto;
    object-fit: contain;
  }
  
  .header-middle {
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
    margin-top: 5px;
  }
  
  .top-header.compact .header-middle {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

.top-header.compact .title {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
  
  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .completed-chip {
    margin-left: auto;
  }
  
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pill);
    color: #e7e9ee;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #252936;
    font-size: 12px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffcf5d;
  }
  
  .progress-wrap {
    margin-top: 20px;
  }
  
  .progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #d2d6df;
    margin-bottom: 8px;
  }
  
  .progress-track {
    height: 10px;
    border-radius: 999px;
    background: #5d6473;
    position: relative;
    margin-bottom: 15px;
  }

  .progress-scale {
    display: none;
    justify-content: space-between;
    margin-top: 10px;
    color: #cfd4de;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }
  
  .progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #9197a4, #ffffff);
    transition: width 0.25s ease;
  }
  
  .progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #000;
    box-shadow: var(--thumb-shadow);
    transition: left 0.25s ease;
  }
  
  .page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 16px 24px;
  }
  
  .survey-card {
    background: #ffffff;
    border-radius: 8px;
  }
  
  .question {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin-bottom: 14px;
    box-shadow: none;
  }

  .question.answered {
    background: #F4F6FA;
  }
  
  .question-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  
  .q-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  
  .badge {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    background: #0d0f15;
    color: #fff;
    font-size: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-top: 1px;
  }
  
  .q-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #171a22;
  }
  
  .q-emoji {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
  }

  .q-emoji.is-hidden {
    visibility: hidden;
  }
  
  .options {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
  }
  
  .opt-btn {
    border: 1px solid #d7dbe4;
    background: #edf0f6;
    color: #1f2430;
    border-radius: 8px;
    min-height: 48px;
    padding: 6px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  
  .opt-btn:hover {
    transform: translateY(-1px);
  }
  
  .opt-btn.active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  }
  
  .opt-btn[data-value="1"].active { background: var(--opt-1); }
  .opt-btn[data-value="2"].active { background: var(--opt-2); }
  .opt-btn[data-value="3"].active { background: var(--opt-3); }
  .opt-btn[data-value="4"].active { background: var(--opt-4); }
  .opt-btn[data-value="5"].active { background: var(--opt-5); }
  .opt-btn[data-value="6"].active { background: var(--opt-6); }
  .opt-btn[data-value="7"].active { background: var(--opt-7); }

  .mobile-selection {
    display: none;
  }
  
  .actions {
    margin-top: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #434a59;
    font-size: 14px;
    background: #EBEEF6;
    border-radius: 10px;
  }
  
  .buttons {
    display: flex;
    gap: 10px;
  }
  
  .btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }
  
  .btn-light {
    background: #f1f3f7;
    color: #3d4350;
    border: 1px solid #d8dde7;
  }
  
  .btn-dark {
    background: #112240;
    color: #fff;
  }
  
  .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  
  .footer {
    text-align: center;
    color: #a0a5b3;
    font-size: 12px;
    padding: 18px 12px 26px;
  }
  
  .footer-logo {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
  }

  .footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .top-header.compact  .progress-wrap {
    margin-top: 5px;
}
  
  @media (max-width: 768px) {
    .header-inner {
      padding: 10px 12px 12px;
    }
  
    .brand {
      font-size: 28px;
    }
  
    .title {
      font-size: 28px;
      margin-top: 5px;
    }

    .subtitle {
        margin-bottom:10px;
    }
  
    .logo {
      width: 65px;
    }
  
    .chip {
        font-size: 10px;
        padding: 5px 9px;
    }

    .completed-chip {
      margin-left: 0;
    }
  
    .survey-card {
      background: #ffffff;
      padding: 0;
    }
  
    .question {
      border-radius: 14px;
      padding: 12px;
    }
  
    .q-text {
      font-size: 14px;
    }
  
    .options {
      grid-template-columns: repeat(7, 1fr);
      gap: 10px;
      margin-top: 12px;
    }
  
    .opt-btn {
      min-height: auto;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      padding: 0;
      font-size: 0;
      background: #ebedf3;
      justify-self: center;
    }
  
    .opt-btn.active {
      transform: none;
    }
  
    .mobile-selection {
      display: block;
      margin-top: 8px;
      text-align: center;
      font-size: 16px;
      font-weight: 700;
    }
  
    .mobile-selection .label {
      font-size: 12px;
      font-weight: 600;
    }
  
    .actions {
      background: #EBEEF6;
      border-radius: 10px;
      padding: 10px;
      margin-top: 10px;
    }

    .q-emoji {
      display: none;
    }

    .progress-scale {
      display: flex;
    }

    .progress-wrap {
        margin-top: 10px;
    }

    .top-header.compact  .progress-wrap {
        margin-top: 4px;
    }
  }