/* Shared account settings from the shop. Keep store and Database on this source. */
    .account-settings-ui .settings-block {
      background: rgba(20, 30, 54, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .account-settings-ui .settings-block:last-of-type {
      margin-bottom: 0;
    }

    .account-settings-ui .block-title {
      font-size: 14px;
      font-weight: 800;
      color: #8fa3c7;
      margin: 0 0 16px 0;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Email Input Specifics */
    .account-settings-ui .input-group {
      margin-top: 4px;
      position: relative;
    }

    .account-settings-ui .input-glass {
      width: 100%;
      height: 52px;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 0 16px 0 46px; /* Space for inner icon */
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      font-family: inherit;
      outline: none;
      transition: all 0.2s;
    }

    .account-settings-ui .input-glass:focus {
      border-color: rgba(70, 166, 255, 0.5);
      background: rgba(0, 0, 0, 0.3);
      box-shadow: 0 0 0 4px rgba(70, 166, 255, 0.1);
    }

    .account-settings-ui #emailCode:focus {
      border-color: rgba(70, 166, 255, 0.58);
      box-shadow: none;
    }

    .account-settings-ui .email-auth-block .input-glass:focus {
      border-color: rgba(70, 166, 255, 0.58);
      box-shadow: none !important;
    }

    .account-settings-ui .input-glass:disabled {
      opacity: 0.72;
      cursor: not-allowed;
    }

    .account-settings-ui .input-glass::placeholder {
      color: rgba(143, 163, 199, 0.5);
      font-weight: 500;
    }

    .account-settings-ui .input-inner-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #8fa3c7;
      opacity: 0.7;
      pointer-events: none;
    }

    .account-settings-ui .password-visibility {
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #8fa3c7;
      background: rgba(255, 255, 255, 0.04);
      cursor: pointer;
    }

    .account-settings-ui .password-visibility:hover {
      color: #fff;
      background: rgba(80, 160, 255, 0.14);
    }

    .account-settings-ui .password-visibility.is-visible {
      color: #55a9ff;
    }

    .account-settings-ui .password-group .input-glass {
      padding-right: 58px;
    }

    .account-settings-ui .email-code-action {
      width: 100%;
      height: 44px;
      margin-top: 10px;
      border-radius: 13px;
      color: #d7e6ff;
      background: rgba(80, 160, 255, 0.14);
      box-shadow: inset 0 0 0 1px rgba(80, 160, 255, 0.28);
    }

    .account-settings-ui .email-code-action:disabled {
      opacity: 0.62;
      cursor: default;
    }

    .account-settings-ui .email-code-action.is-confirm {
      color: #fff;
      background: linear-gradient(135deg, var(--blue), var(--blue-2));
      box-shadow: 0 6px 22px rgba(70, 166, 255, 0.24);
    }

    .account-settings-ui .email-field-note {
      margin: 9px 2px 0;
      color: #8fa3c7;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 600;
    }

    .account-settings-ui .connect-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .account-settings-ui .connect-title {
      font-size: 15px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 4px;
    }

    .account-settings-ui .connect-note {
      font-size: 12px;
      line-height: 1.45;
      color: #8fa3c7;
    }

    .account-settings-ui .connect-note.is-push-loading {
      color: var(--blue);
    }

    .account-settings-ui .connect-note.is-push-loading::after {
      content: '';
      display: inline-block;
      width: 18px;
      text-align: left;
      animation: push-status-dots 1.1s steps(1, end) infinite;
    }

    @keyframes push-status-dots {
      0%, 20% { content: ''; }
      40% { content: '.'; }
      60% { content: '..'; }
      80%, 100% { content: '...'; }
    }

    .account-settings-ui .connect-action {
      flex: 0 0 auto;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
      border-radius: 12px;
      padding: 0 14px;
      color: #fff;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      background: rgba(0, 136, 204, 0.22);
      box-shadow: inset 0 0 0 1px rgba(0, 136, 204, 0.35);
      white-space: nowrap;
    }

    .account-settings-ui .connect-action.google {
      color: #111827;
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
    }

    .account-settings-ui .connect-action.is-disabled {
      opacity: 0.5;
      pointer-events: none;
    }

    .account-settings-ui .connect-action.is-linked {
      color: #59d58a;
      background: rgba(89, 213, 138, 0.1);
      box-shadow: inset 0 0 0 1px rgba(89, 213, 138, 0.24);
      pointer-events: none;
    }

    .account-settings-ui .settings-message {
      display: none;
      margin-top: 12px;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.45;
      color: #8fa3c7;
    }

    .account-settings-ui .settings-message.is-visible {
      display: block;
    }

    .account-settings-ui .settings-message.is-error {
      color: #ff8a8a;
    }

    .account-settings-ui .settings-message.is-success {
      color: #59d58a;
    }

    /* Install-app (PWA) guide */
    body.install-guide-open { overflow: hidden; }
    .account-settings-ui .install-app-block .connect-note { max-width: none; }
    .install-guide-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: calc(16px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px));
      background: rgba(4, 8, 18, 0.72);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
      animation: installGuideFade 0.18s ease;
    }
    .install-guide-overlay[hidden] { display: none; }
    @keyframes installGuideFade { from { opacity: 0; } to { opacity: 1; } }
    .install-guide-modal {
      width: 100%;
      max-width: 440px;
      background: #0f1a30;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 22px;
      padding: 20px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
      max-height: calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
      overflow-y: auto;
      animation: installGuideUp 0.22s cubic-bezier(.2, .8, .2, 1);
    }
    @keyframes installGuideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @media (min-width: 560px) { .install-guide-overlay { align-items: center; } }
    .install-guide-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    .install-guide-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
    .install-guide-close {
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 10px;
      color: #8fa3c7;
      background: rgba(255, 255, 255, 0.06);
      cursor: pointer;
      transition: all 0.18s;
    }
    .install-guide-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
    .install-guide-tabs {
      display: flex;
      gap: 6px;
      padding: 4px;
      background: rgba(0, 0, 0, 0.25);
      border-radius: 14px;
      margin-bottom: 18px;
    }
    .install-guide-tab {
      flex: 1 1 0;
      height: 40px;
      border: 0;
      border-radius: 10px;
      cursor: pointer;
      font-family: inherit;
      font-size: 13px;
      font-weight: 800;
      color: #8fa3c7;
      background: transparent;
      transition: all 0.18s;
    }
    .install-guide-tab.is-active {
      color: #fff;
      background: rgba(0, 136, 204, 0.28);
      box-shadow: inset 0 0 0 1px rgba(0, 136, 204, 0.4);
    }
    .install-guide-illu { margin-bottom: 18px; }
    .install-guide-illu .illu-sheet {
      background: rgba(0, 0, 0, 0.28);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 12px;
    }
    .install-guide-illu .illu-sheet-grip {
      width: 36px;
      height: 4px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.18);
      margin: 0 auto 12px;
    }
    .install-guide-illu .illu-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(0, 136, 204, 0.16);
      box-shadow: inset 0 0 0 1px rgba(0, 136, 204, 0.4);
    }
    .install-guide-illu .illu-ico {
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
    }
    .install-guide-illu .illu-label { flex: 1 1 auto; font-size: 14px; font-weight: 700; color: #fff; }
    .install-guide-illu .illu-badge {
      flex: 0 0 auto;
      width: 24px;
      height: 24px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 800;
      color: #fff;
      background: rgba(0, 136, 204, 0.42);
    }
    .install-guide-illu .illu-install {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px;
      border-radius: 16px;
      background: rgba(0, 0, 0, 0.28);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .install-guide-illu .illu-app-img {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .install-guide-illu .illu-app {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      font-size: 15px;
      color: #fff;
      background: linear-gradient(135deg, #0a84ff, #0055d4);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }
    .install-guide-illu .illu-meta { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
    .install-guide-illu .illu-meta b { font-size: 14px; font-weight: 800; color: #fff; }
    .install-guide-illu .illu-meta small { font-size: 11px; color: #8fa3c7; }
    .install-guide-illu .illu-btn {
      flex: 0 0 auto;
      height: 34px;
      padding: 0 16px;
      border-radius: 18px;
      display: inline-flex;
      align-items: center;
      font-size: 13px;
      font-weight: 800;
      color: #fff;
      background: rgba(0, 136, 204, 0.9);
    }
    .install-guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: installstep; }
    .install-guide-steps li {
      position: relative;
      counter-increment: installstep;
      padding: 0 0 16px 44px;
      min-height: 30px;
      font-size: 14px;
      line-height: 1.5;
      color: #c6d2e6;
    }
    .install-guide-steps li:last-child { padding-bottom: 0; }
    .install-guide-steps li::before {
      content: counter(installstep);
      position: absolute;
      left: 0;
      top: 0;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
      color: #fff;
      background: rgba(0, 136, 204, 0.22);
      box-shadow: inset 0 0 0 1px rgba(0, 136, 204, 0.4);
    }
    .install-guide-steps b { color: #fff; font-weight: 800; }
    .install-guide-ic { display: inline-flex; vertical-align: -3px; margin: 0 1px; }
    .install-guide-foot {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 12px;
      line-height: 1.5;
      color: #8fa3c7;
    }
    .install-guide-modal.is-single .install-guide-tabs { display: none; }
    .install-guide-other { display: none; margin-top: 14px; padding: 0; border: 0; background: none; color: #8fa3c7; font-family: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
    .install-guide-modal.is-single .install-guide-other { display: inline-block; }
